-
Notifications
You must be signed in to change notification settings - Fork 142
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
Rails 5 ActionController::Parameters no longer inherits from Hash #381
Comments
This is pretty similar to #379. There are a few workarounds in there. The easiest fix is to use |
@tfausak yeah, that's the fix I'm using right now. Even if you decide not to fix this, it would be nice if the documentation would make notice of the workaround. |
This might be a big enough problem to warrant a fix. If not then we definitely should do as @scarhand suggests and update the docs. We could check for this one specific class name and convert it rather than implementing a generic |
Allow ActionController::Parameters as inputs
In Rails 5 ActionController::Parameters no longer inherits from Hash.
Therefor something like
MyInteraction.run(params)
will fail with the ArgumentError "inputs must be a hash".The text was updated successfully, but these errors were encountered: