1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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.
#