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

Deep stripping whitespace in nested search params with group conditions #1502

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aukraine
Copy link

@aukraine aukraine commented Jul 8, 2024

Resolves #1414

Fix case when strip_whitespace doesn't work with group conditions

Before

> User.ransack({g: [name_cont: "  John  ", email_cont: "  John ", m: "or"]}).result
=> []

After

> User.ransack({g: [name_cont: "  John  ", email_cont: "  John ", m: "or"]}).result
=> [#<User id, ...>]

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

Successfully merging this pull request may close these issues.

strip_whitespace doesn't work with group conditions
1 participant