-
Notifications
You must be signed in to change notification settings - Fork 636
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
Deprecate ActionController::Parameters #558
Conversation
Looks good to me 👍 |
It seems that a simple |
Good point Brendon. In the spirit of ruby, I'd like to keep the existing I'm open to any other suggestions that make it very clear to people when they forget to |
Perhaps instead of type checking, you could raise an error if the username and password keys aren't present in the hash, with a suggestion that they check that they permitted those values? Or maybe even just raise if the hash is empty since that's the most likely scenario. |
So, authlogic would continue to call |
This deprecation warning was released as 3.7.0. #580 makes the actual breaking change, was merged into |
Fixes #512
What do you think? Should we have special code to deal with
ActionController::Parameters
?We could fix #512 by adding even more special code, or we could simplify the whole thing by requiring a plain
Hash
. But, that's a breaking change.