On 18 August 2010 08:44, Franz Strebel <franz.stre...@gmail.com> wrote:
> On Tue, Aug 17, 2010 at 9:39 PM, Sandip Ransing <san2...@gmail.com> 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 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