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:
commit
1963aa3e88
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