Open NullVoxPopuli opened 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)
Objects
I tried using a named scope: In the same method, I have this:
and
but both the original @search.all and the new @search.all yield the same number of results. (The new @search should have 2
Objects
)