Commit 0823d3efc466e7e5ed0aa0cc8d0950c60b2db76b
Merge pull request #56 from cjolly/patch-1
mention has_secure_password in README.Aman Gupta committed on 3/31/2013, 3:04:55 AM
Parent: 054888806bcede3049ccb38bf421ec7986973657
Parent: 91b34044e23625a6600866de5d7369d1a3c914e7
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