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

Fix sanitize_for_mass_assigment when role is nil #5049

Merged
merged 1 commit into from Feb 15, 2012

Conversation

fabioyamate
Copy link
Contributor

There is an example in Rails documentation that suggests implementing
assign_attributes method for ActiveModel interface, that by default
sends option role with nil. Since mass_assignment_authorizer never
is called without args, we can move the default value internally.

This should be backported to Rails 3.2

There is an example in Rails documentation that suggests implementing
assign_attributes method for ActiveModel interface, that by default
sends option role with nil. Since mass_assignment_authorizer never
is called without args, we can move the default value internally.
josevalim pushed a commit that referenced this pull request Feb 15, 2012
Fix sanitize_for_mass_assigment when role is nil
@josevalim josevalim merged commit 1c22c6f into rails:master Feb 15, 2012
josevalim pushed a commit that referenced this pull request Feb 15, 2012
Fix sanitize_for_mass_assigment when role is nil
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.

None yet

2 participants