mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Declaring the attr_accessor for password_confirmation is not necessary
as the confirmation validation already adds that attr_accessor
This commit is contained in:
parent
7660e7cb4d
commit
a8365ab9ad
1 changed files with 1 additions and 2 deletions
|
@ -31,7 +31,6 @@ module ActiveModel
|
|||
# User.find_by_name("david").try(:authenticate, "mUc3m00RsqyRe") # => user
|
||||
def has_secure_password
|
||||
attr_reader :password
|
||||
attr_accessor :password_confirmation
|
||||
|
||||
validates_confirmation_of :password
|
||||
validates_presence_of :password_digest
|
||||
|
|
Loading…
Reference in a new issue