searchlogic icon indicating copy to clipboard operation
searchlogic copied to clipboard

Problem with named scope container OR

Open NullVoxPopuli opened this issue 15 years ago • 0 comments

I tried using a named scope: In the same method, I have this:

   Object.named_scope :public_and_my_private, :conditions => "user.id == #{current_user.id} or visibility == #{Shared::PUBLIC}"

and

@search = @search.search(:public_and_my_private) 

but both the original @search.all and the new @search.all yield the same number of results. (The new @search should have 2 Objects)

NullVoxPopuli avatar Aug 04 '10 19:08 NullVoxPopuli