This project is archived and is in readonly mode.

Changeset [a08d04bedfd01cc0a517ccedf74f2ceac70eb28d] by Josh Kalderimis

April 24th, 2011 @ 08:53 AM

Added assign_attributes to Active Record which accepts a mass-assignment security scope using the :as option, while also allowing mass-assignment security to be bypassed using :with_protected
https://github.com/rails/rails/commit/a08d04bedfd01cc0a517ccedf74f2...

Committed by Josh Kalderimis

  • R activerecord/test/models/loose_person.rb
  • M activerecord/lib/active_record/base.rb
  • M activerecord/test/cases/base_test.rb
  • M activerecord/test/cases/mass_assignment_security_test.rb
  • M activerecord/test/cases/persistence_test.rb
  • M activerecord/test/models/person.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>