Skip to content

Commit

Permalink
Merge pull request #4721 from ab9/fix_has_secure_password_doc
Browse files Browse the repository at this point in the history
Fix documentation for has_secure_password
  • Loading branch information
José Valim committed Jan 27, 2012
2 parents f22a0e2 + 9d119c5 commit 0341ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/secure_password.rb
Expand Up @@ -29,7 +29,7 @@ module ClassMethods
# 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.
Expand Down

0 comments on commit 0341ca1

Please sign in to comment.