aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorMike Gehard <mike.gehard@gmail.com>2014-05-17 18:01:11 -0600
committerMike Gehard <mike.gehard@gmail.com>2014-05-18 06:47:37 -0600
commit8dd801d6cad9cb690f58746850ccf25139629909 (patch)
tree128dd1d1d306a3df33b37595fa932d72ffc14cd6 /activemodel
parent8df8334327b3afe2c66458ed7877d2aacfabd515 (diff)
downloadrails-8dd801d6cad9cb690f58746850ccf25139629909.tar.gz
rails-8dd801d6cad9cb690f58746850ccf25139629909.tar.bz2
rails-8dd801d6cad9cb690f58746850ccf25139629909.zip
Let others know why this code is here
[ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/secure_password.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb
index 826e89bf9d..0c3ed9e8ca 100644
--- a/activemodel/lib/active_model/secure_password.rb
+++ b/activemodel/lib/active_model/secure_password.rb
@@ -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']