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:
parent
8df8334327
commit
8dd801d6ca
1 changed files with 1 additions and 0 deletions
|
@ -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']
|
||||
|
|
Loading…
Reference in a new issue