Permalink
Browse files

Let others know why this code is here

[ci skip]
  • Loading branch information...
1 parent 8df8334 commit 8dd801d6cad9cb690f58746850ccf25139629909 @mikegehard mikegehard committed May 18, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 activemodel/lib/active_model/secure_password.rb
@@ -68,6 +68,7 @@ def has_secure_password(options = {})
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']

0 comments on commit 8dd801d

Please sign in to comment.