fix example code in documentation for has_secure_password

This commit is contained in:
Aaron Beckerman 2012-01-28 00:53:02 +11:00
parent f22a0e2f1d
commit 9d119c5fee
1 changed files with 1 additions and 1 deletions

View File

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