aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorAaron Beckerman <aaron@aaronbeckerman.com>2012-01-28 00:53:02 +1100
committerAaron Beckerman <aaron@aaronbeckerman.com>2012-01-28 00:53:02 +1100
commit9d119c5fee242d773c4e28e4613ed7e087dcd3a4 (patch)
tree73be9a0cecba8336a63c8fdec9f771cbd12b897c /activemodel/lib/active_model
parentf22a0e2f1d55af4c16abbe29158d190053374a76 (diff)
downloadrails-9d119c5fee242d773c4e28e4613ed7e087dcd3a4.tar.gz
rails-9d119c5fee242d773c4e28e4613ed7e087dcd3a4.tar.bz2
rails-9d119c5fee242d773c4e28e4613ed7e087dcd3a4.zip
fix example code in documentation for has_secure_password
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/secure_password.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb
index db78864c67..e7a57cf691 100644
--- a/activemodel/lib/active_model/secure_password.rb
+++ b/activemodel/lib/active_model/secure_password.rb
@@ -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.