HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
Fix sanitize_for_mass_assigment when role is nil
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.
- Loading branch information...
Showing with 10 additions and 3 deletions.