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

Let others know why this code is here

[ci skip]
This commit is contained in:
Mike Gehard 2014-05-17 18:01:11 -06:00
parent 8df8334327
commit 8dd801d6ca

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']