-
-
Notifications
You must be signed in to change notification settings - Fork 807
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
[299] Let attribute names include "and" / "or" #302
[299] Let attribute names include "and" / "or" #302
Conversation
The mysql builds are failing... One scenario this won't cover is |
I don't think this is workable unless we change internals to Suggest closing this. |
I think it'd be perfectly fine to use |
Parsed conditions hashes are usable already if you set up your own nested groups of and/or, etc. We should probably document that better in the wiki or provide some helpers for building more complex conditions. I wouldn't recommend changing the current |
@seanlinsley Thanks again for this contribution. I tried your above test to let attribute names include "and" / "or" on the latest Ransack -- and it still fails (see commit 5f8621c today). So we are not there yet... |
Shouldn't this have been resolved by #449? |
Apparently not. The attribute is detected, but the search is not picking up the attribute. |
I tried your test today (see the last commit), and it isn't passing on Ransack master. |
This PR is should be replaced by #562 (which is merged) and can be closed |
Thanks @timoschilling. |
This is my attempt at fixing #299. It works, but likely doesn't cover all scenarios.
The
/_and_|_or_/
style logic exists all over the place; for example I know the translation code is still broken in the context of #299. Maybe it'd be better to extract the attribute splitting logic out to a single method that all code would use.