Remove attributes_protected_by_default reference, since MassAssignmentSecurity was removed from ActiveModel f8c9a4d3e88181
This commit is contained in:
parent
82dd93bd5e
commit
e0213f45ea
@ -77,13 +77,6 @@ def has_secure_password(options = {})
|
||||
validates_length_of :password, maximum: ActiveModel::SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED
|
||||
validates_confirmation_of :password, allow_blank: true
|
||||
end
|
||||
|
||||
# This code is necessary as long as the protected_attributes gem is supported.
|
||||
if respond_to?(:attributes_protected_by_default)
|
||||
def self.attributes_protected_by_default #:nodoc:
|
||||
super + ['password_digest']
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user