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:
parent
7359f8190d
commit
41f7d07da3
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue