Skip to content
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

Support for ransack cont_all queries #16

Open
guzart opened this issue Feb 22, 2017 · 0 comments
Open

Support for ransack cont_all queries #16

guzart opened this issue Feb 22, 2017 · 0 comments

Comments

@guzart
Copy link

guzart commented Feb 22, 2017

When using ransack's _cont_all predicate, the value expects an array of search keywords, currently only the string search value is passed to ransack.

First idea that comes to mind is to do a pre-processing of params[:q] before passing it to ransack. This way the configuration and logic can remain on the server side.

The pre-processing would check for predicates that are expecting an array of keywords and then split their corresponding value string into a keyword array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant