Commit 91b34044e23625a6600866de5d7369d1a3c914e7
mention has_secure_password in README.
Chad Jolly committed on 1/24/2013, 7:51:40 PMParent: ef50fe960d4dc50eb1df76fbc18a312a43e5c07d
Files changed
README.md | changed |
README.md | ||
---|---|---|
@@ -33,8 +33,12 @@ | ||
33 | 33 | * Any 1.8 or 1.9 ruby on a BSD/OSX/Linux system with a compiler |
34 | 34 | |
35 | 35 | ## How to use `bcrypt()` in your Rails application |
36 | 36 | |
37 | +*Note*: Rails versions >= 3 ship with `ActiveModel::SecurePassword` which uses bcrypt-ruby. | |
38 | +`has_secure_password` [docs](http://api.rubyonrails.org/classes/ActiveModel/SecurePassword/ClassMethods.html#method-i-has_secure_password) | |
39 | +implements a similar authentication strategy to the code below. | |
40 | + | |
37 | 41 | ### The _User_ model |
38 | 42 | |
39 | 43 | require 'bcrypt' |
40 | 44 |
Built with git-ssb-web