Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Put attr_reader in with all of the other instance methods

This makes the grouping make a little more sense
  • Loading branch information...
commit 41f7d07da3de09862f6308889a43f2f894320c0e 1 parent 7359f81
@mikegehard mikegehard authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/secure_password.rb
View
4 activemodel/lib/active_model/secure_password.rb
@@ -52,8 +52,6 @@ def has_secure_password(options = {})
raise
end
- attr_reader :password
-
include InstanceMethodsOnActivation
if options.fetch(:validations, true)
@@ -91,6 +89,8 @@ def authenticate(unencrypted_password)
BCrypt::Password.new(password_digest) == unencrypted_password && self
end
+ attr_reader :password
+
# Encrypts the password into the +password_digest+ attribute, only if the
# new password is not blank.
#
Please sign in to comment.
Something went wrong with that request. Please try again.