-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OR conditions with Search class #31
Comments
is this going to be worked on, I just ran into this. A large part of using search logic is the search method, but you currently cant use or statements like: User.search(:gpa_lte_or_null => 4) It just ignores all the conditions. |
noticed the same issue. a bit annoying. |
would be very helpful if the search object supports OR chaining as well. |
I have an issues somewhat like this, Place.{:title, :brand_id} Place.title_or_brand_title_like_any(q) only searches places that are associated with a brand, fails to return places without a association. |
Could be possible to add OR support even to Search class. I would like do this
Book.search(:title_or_description_like => 'ruby')
or in chain
s = Book.search
s.title_or_description_like('ruby')
Now it produce only
s.conditions => {:title_or_description_like => false}
Thanks for wonderful work.
The text was updated successfully, but these errors were encountered: