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

Put attr_reader in with all of the other instance methods

This makes the grouping make a little more sense
This commit is contained in:
Mike Gehard 2014-05-17 13:45:35 -06:00
parent 7359f8190d
commit 41f7d07da3

View file

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