Permalink
Browse files

Merge pull request #10690 from robertomiranda/remove_mass_assignment_…

…security

Remove attributes_protected_by_default reference
  • Loading branch information...
guilleiguaran committed Jan 9, 2015
2 parents 7e00605 + e0213f4 commit 6907fcd8c72ed81e531ab025b9465cfe1371b1aa
Showing with 0 additions and 7 deletions.
  1. +0 −7 activemodel/lib/active_model/secure_password.rb
@@ -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

0 comments on commit 6907fcd

Please sign in to comment.