binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.39k stars 133 forks source link

Problem with named scope container OR #107

Open NullVoxPopuli opened 14 years ago

NullVoxPopuli commented 14 years ago

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)