1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #15157 from msgehard/remove_cruft_in_has_secure_password

Remove cruft now that strong_parameters is default [ci skip]
This commit is contained in:
Yves Senn 2014-05-18 17:13:00 +02:00
commit 1963aa3e88

View file

@ -68,6 +68,7 @@ module ActiveModel
validates_confirmation_of :password, if: ->{ password.present? }
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']