git ssb

0+

dangerousbeans / %aPBe2k3ugtjBr4rrsU1…



Commit fcfefaaf48b2f0dd5a288435235052bdc3e6c58b

Fixed reference to ActiveRecord::Base#hash.

(h/t Winson)

git-svn-id: http://bcrypt-ruby.rubyforge.org/svn/trunk@29 b1e0f299-433e-4bb3-9895-84128a6cfb6a
codahale committed on 5/3/2007, 8:58:35 AM
Parent: c211044e69bffa78b9bb58feb9cadea7120f139d

Files changed

READMEchanged
READMEView
@@ -25,18 +25,18 @@
2525
2626 require 'bcrypt'
2727
2828 class User < ActiveRecord::Base
29- # users.hash in the database is a :string
29 + # users.password_hash in the database is a :string
3030 include BCrypt
3131
3232 def password
33- @password ||= Password.new(hash)
33 + @password ||= Password.new(password_hash)
3434 end
3535
3636 def password=(new_password)
3737 @password = Password.create(new_password)
38- self.hash = @password
38 + self.password_hash = @password
3939 end
4040
4141 end
4242

Built with git-ssb-web