Merge pull request #15154 from msgehard/move_password_field

Put attr_reader in with all of the other instance methods
This commit is contained in:
Rafael Mendonça França 2014-05-20 20:24:51 -03:00
commit 5508a3e5ca
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,6 @@ module ActiveModel
raise
end
attr_reader :password
include InstanceMethodsOnActivation
if options.fetch(:validations, true)
@ -92,6 +90,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.
#