Re: [Rails] Re: rails named scopes joined with OR

2010-08-17 Thread Sandip Ransing
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 :( On 8/

[Rails] Re: rails named scopes joined with OR

2010-08-17 Thread Marnen Laibow-Koser
Sandip Ransing wrote: > Is it possible to have OR conditions using named scope ?? > For e.g. Gather users based on following or conditions. > 1. active is one named scope which finds all users whose state is active > 2. OR user id is in 1,2,3 > > This condition can be written in only one named sco