Remove attributes_protected_by_default reference, since MassAssignmentSecurity was removed from ActiveModel f8c9a4d3e88181

This commit is contained in:
robertomiranda 2013-05-19 22:37:46 -05:00
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