GitHub User: etdsoft
To quickly view differences between Rails versions:
http://railsdiff.org/html/v3.2.13-v4.0.0.rc1.html
Use BCrypt::Password.create() instead of BCrypt::Engine and the library takes care of the salt for you:
def create(secret, options = { :cost => BCrypt::Engine::DEFAULT_COST }) Password.new(BCrypt::Engine.hash_secret(secret, BCrypt::Engine.generate_salt(options[:cost]), options[:cost])) end
http://bcrypt-ruby.rubyforge.org/classes/BCrypt/Password.html#M000007
To quickly view differences between Rails versions:
http://railsdiff.org/html/v3.2.13-v4.0.0.rc1.html
Use BCrypt::Password.create() instead of BCrypt::Engine and the library takes care of the salt for you:
http://bcrypt-ruby.rubyforge.org/classes/BCrypt/Password.html#M000007