This project is archived and is in readonly mode.

Changeset [ad31549ab3044afc336c05243481c0f663689584] by Tsutomu Kuroda

February 9th, 2011 @ 08:35 PM

Override attributes_protected_by_default when has_secure_password is called.

attr_protected should not be called, because it nullifies the
mass assignment protection that has been set by attr_accessible.

Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/ad31549ab3044afc336c05243481c...

Committed by Tsutomu Kuroda

  • A activemodel/test/models/administrator.rb
  • A activemodel/test/models/visitor.rb
  • M activemodel/lib/active_model/secure_password.rb
  • M activemodel/test/cases/secure_password_test.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>