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
Fix 'permit' params to allow multiple form inputs for a single scope #115
Conversation
Thanks for this, but in my case it doesn't solve the problem yet. It still complains about a unpermitted parameter.. will investigate further |
Got it. The comparison Therefore I propose the following change: Alternatively, instead of comparing with a fixed list of classes, we could also just check if the instance responds to they For now I'll submit a pull request to your pull request containing the former fix. |
… Hash is whitelisted
I know why it worked in your case. You must have tested on Rails 4 or earlier. Back then Thus, what was actually passed will always be of type |
…ters Whitelist params of type ActionController::Parameters in the same way…
That makes sense, thank you for the update! I merged your pull request and it seems everything is working fine. |
Permit array parameters in filterrific_params. With this change, you can filter by multiple values from a select. All credit goes to [@patrocc6](github.com/patrocc6) for this, see jhund#113 (comment)
ActionController::Parameters no longer inherits from hash in rails 5
Properly permit array params
This also fixes #113 now. |
Thanks for fixing this! It would be great to have this merged in. |
@jhund Could you please merge this in, as various important fixes by various contributors are included in this PR, thanks 👍 |
Thank you for the fix! |
Resolves #114