On 17 August 2010 23:02, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
> Sandip Ransing wrote:
>> Marnen thx for reply !
>>
>> Actually I wanted to add "OR" condition to acts_as_mappable finders,
>> So that result-set will contain my own preferences too...but now it
>> looks like
>> for this purpose i may either need to mess up with library of
>> rails_geokit plugin
>> or override source of named_scope :(
>
> No.  Don't.  It's a bad idea.  It should never be necessary.  Did you
> read the link I posted?

Marnen, I am not sure what you are saying should never be necessary.
Suppose I have named_scope_a and named_scope_b.  Are you saying it
should never be necessary to find the set of records that includes all
those in _a and those in _b?  If not that then what is the best way?
To provide a new named scope for the OR condition does not seem very
DRY.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to