Franz,
what you said i was doing this but it's not good performance wise as it
fires 2 queries also
purpose of pagination will be for toss bcoz it will load objects and then do
pagination.

Colin,
I am completely agree with your opinion and thinking there should be option
for doing this.

On Wed, Aug 18, 2010 at 1:27 PM, Colin Law <clan...@googlemail.com> wrote:

> 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<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


-- 
Sandip

---
www.funonrails.com

-- 
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