Permalink
Browse files

Merge pull request #4721 from ab9/fix_has_secure_password_doc

Fix documentation for has_secure_password
  • Loading branch information...
2 parents f22a0e2 + 9d119c5 commit 0341ca15afe0fb973fea782fa2d184cc0ff20a97 @josevalim josevalim committed Jan 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/secure_password.rb
@@ -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.

0 comments on commit 0341ca1

Please sign in to comment.