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

Mass assignment #15

Closed
ayrton opened this issue Mar 25, 2012 · 1 comment
Closed

Mass assignment #15

ayrton opened this issue Mar 25, 2012 · 1 comment

Comments

@ayrton
Copy link
Contributor

ayrton commented Mar 25, 2012

Currently when I try to invoke the false_positive! method then I receive a mass assignment exception. This is because the gem is using update_attributes.

I'd prefer not to add the spam attribute in attr_accessible a possible solution would be to change the update_attributes method calls to update_attribute

What do you think? If you want I can make those changes and send a pull request.

@sarahhodne
Copy link
Contributor

Not using update_attributes makes more sense. If you could send a pull request that would be stellar.

ayrton added a commit to ayrton/defender that referenced this issue Mar 26, 2012
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

2 participants