mirror of
https://github.com/github/rails.git
synced 2026-01-14 17:18:04 -05:00
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>
11 lines
231 B
Ruby
11 lines
231 B
Ruby
class Administrator
|
|
include ActiveModel::Validations
|
|
include ActiveModel::SecurePassword
|
|
include ActiveModel::MassAssignmentSecurity
|
|
|
|
attr_accessor :name, :password_digest
|
|
attr_accessible :name
|
|
|
|
has_secure_password
|
|
end
|