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>
10 lines
194 B
Ruby
10 lines
194 B
Ruby
class Visitor
|
|
include ActiveModel::Validations
|
|
include ActiveModel::SecurePassword
|
|
include ActiveModel::MassAssignmentSecurity
|
|
|
|
has_secure_password
|
|
|
|
attr_accessor :password_digest
|
|
end
|