Please sign in to comment.
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 <email@example.com>
- Loading branch information...
Showing with 38 additions and 2 deletions.
|@@ -0,0 +1,10 @@|
|+ include ActiveModel::Validations|
|+ include ActiveModel::SecurePassword|
|+ include ActiveModel::MassAssignmentSecurity|
|+ attr_accessor :name, :password_digest|
|+ attr_accessible :name|