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

Add support for mass assignment in Rails 4 and 5 #316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rayzeller
Copy link

Pull Request checklist:

  • Write an explicit title for the Pull Request
  • Write changes made in the CHANGELOG.md
  • Create automatic tests
  • No automatic tests failures
  • Test manually the implemented changes
  • Review my own code (indentation, syntax, style, simplicity, readability)
  • Wonder if you can improve the existing code

Not sure if this is your preferred way of fixing the underlying issue, since I don't quite fully understand the arity method for update_attributes!. Reading the source code, it looks like it should always be 1 for Rails 4 and 5, so I'm confused as to why it was breaking our Rails 5 code. Even the tests never hit the alternate update without_protection: true.

@arnaudbesnier arnaudbesnier force-pushed the devel branch 7 times, most recently from 1216774 to 23e6368 Compare September 19, 2019 10:14
@arnaudbesnier arnaudbesnier changed the base branch from devel to master May 19, 2020 07:21
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.

1 participant