diff options
author | Aaron Beckerman <aaron@aaronbeckerman.com> | 2012-01-28 00:53:02 +1100 |
---|---|---|
committer | Aaron Beckerman <aaron@aaronbeckerman.com> | 2012-01-28 00:53:02 +1100 |
commit | 9d119c5fee242d773c4e28e4613ed7e087dcd3a4 (patch) | |
tree | 73be9a0cecba8336a63c8fdec9f771cbd12b897c /activemodel/lib | |
parent | f22a0e2f1d55af4c16abbe29158d190053374a76 (diff) | |
download | rails-9d119c5fee242d773c4e28e4613ed7e087dcd3a4.tar.gz rails-9d119c5fee242d773c4e28e4613ed7e087dcd3a4.tar.bz2 rails-9d119c5fee242d773c4e28e4613ed7e087dcd3a4.zip |
fix example code in documentation for has_secure_password
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/secure_password.rb | 2 |
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. |