diff options
author | Mike Gehard <mike.gehard@gmail.com> | 2014-05-17 13:45:35 -0600 |
---|---|---|
committer | Mike Gehard <mike.gehard@gmail.com> | 2014-05-17 13:45:35 -0600 |
commit | 41f7d07da3de09862f6308889a43f2f894320c0e (patch) | |
tree | 2c0ba3949ff5719a518b2a0121040546eb3cc9c9 | |
parent | 7359f8190d0ac97db077096796bdc582dffa90d8 (diff) | |
download | rails-41f7d07da3de09862f6308889a43f2f894320c0e.tar.gz rails-41f7d07da3de09862f6308889a43f2f894320c0e.tar.bz2 rails-41f7d07da3de09862f6308889a43f2f894320c0e.zip |
Put attr_reader in with all of the other instance methods
This makes the grouping make a little more sense
-rw-r--r-- | activemodel/lib/active_model/secure_password.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb index 826e89bf9d..76beaad9f5 100644 --- a/activemodel/lib/active_model/secure_password.rb +++ b/activemodel/lib/active_model/secure_password.rb @@ -52,8 +52,6 @@ module ActiveModel raise end - attr_reader :password - include InstanceMethodsOnActivation if options.fetch(:validations, true) @@ -91,6 +89,8 @@ module ActiveModel 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. # |