Permalink
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...
1 parent 7359f81 commit 41f7d07da3de09862f6308889a43f2f894320c0e @mikegehard mikegehard committed May 17, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 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.
#

0 comments on commit 41f7d07

Please sign in to comment.