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

Refactoring validate_missing_parameters to validate_required_parameters. #9880

Merged

Conversation

wangjohn
Copy link
Contributor

Inside of assign_attributes, there is a method which checks to make sure that particular parameters exist. The previous method name was validate_missing_parameters! and sounds like some parameters should be missing, when in fact it's meant to check to make sure none of the parameters passed in as arguments are missing.

Because of this, I think that validate_required_parameters! is a more apt name. I also removed a space in the middle of an empty hash.

rafaelfranca added a commit that referenced this pull request Mar 23, 2013
Refactoring validate_missing_parameters to validate_required_parameters.
@rafaelfranca rafaelfranca merged commit 727e286 into rails:master Mar 23, 2013
@rafaelfranca
Copy link
Member

Thank you ❤️ 💚 💙 💛 💜

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.

2 participants