fix example code in documentation for has_secure_password
This commit is contained in:
parent
f22a0e2f1d
commit
9d119c5fee
|
@ -29,7 +29,7 @@ module ActiveModel
|
|||
# user.save # => true
|
||||
# user.authenticate("notright") # => false
|
||||
# user.authenticate("mUc3m00RsqyRe") # => user
|
||||
# User.find_by_name("david").try(:authenticate, "notright") # => nil
|
||||
# User.find_by_name("david").try(:authenticate, "notright") # => false
|
||||
# User.find_by_name("david").try(:authenticate, "mUc3m00RsqyRe") # => user
|
||||
def has_secure_password
|
||||
# Load bcrypt-ruby only when has_secure_password is used.
|
||||
|
|
Loading…
Reference in New Issue