On 18 August 2010 08:44, Franz Strebel <[email protected]> wrote: > On Tue, Aug 17, 2010 at 9:39 PM, Sandip Ransing <[email protected]> wrote: > >> Is it possible to have two named scopes that can be joined using OR >> condition. > > How about > > result = (named_scope_1 + named_scope_2).uniq
That would loose the sort order I think, though one could always re-sort of course. Also could one use methods such as first on the result? Or apply another named scope to the result to further refine it? 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

