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

4.2.2 - ActiveModel::MassAssignmentSecurity::Error #66

Closed
brodock opened this issue Jun 24, 2013 · 5 comments
Closed

4.2.2 - ActiveModel::MassAssignmentSecurity::Error #66

brodock opened this issue Jun 24, 2013 · 5 comments

Comments

@brodock
Copy link
Contributor

brodock commented Jun 24, 2013

4.2.1 works fine, but 4.2.2 gives me:

ActiveModel::MassAssignmentSecurity::Error: Can't mass-assign protected attributes: ancestor, descendant, generations
@mceachen
Copy link
Collaborator

What version of active record are you using? Are you using
strong_parameters or attr_accessible?

@brodock
Copy link
Contributor Author

brodock commented Jun 24, 2013

ActiveRecord 3.2.13, using attr_accessible

@mceachen
Copy link
Collaborator

I'm going to delete the "are you Rails 3 or 4?" line from ClosureTree::SupportFlags and add an explicit test for this.

Thanks for the issue report!

@mceachen
Copy link
Collaborator

fixed in v4.2.3

@ahacking
Copy link

I found other issues with attr_accessible handling on AR 4/Rails 4 and have just raised PR #75 to fix the problems I encountered.

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

No branches or pull requests

3 participants