Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [ad31549ab3044afc336c05243481c0f663689584] by Tsutomu Kuroda

Revision ad31549ab3044afc336c05243481c0f663689584, committed 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...

4 changed files

  • 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