class method
self.new
Ruby on Rails edge
Since edgeSignature
self.new()
No documentation comment.
Source
# File activemodel/lib/active_model/secure_password/bcrypt_password.rb, line 11
def initialize
# Load bcrypt gem only when has_secure_password is used.
# This is to avoid Active Model (and by extension the entire framework)
# being dependent on a binary library.
require "bcrypt"
rescue LoadError
warn "You don't have bcrypt installed in your application. Please add it to your Gemfile and run bundle install."
raise
end
Defined in activemodel/lib/active_model/secure_password/bcrypt_password.rb line 11
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::SecurePassword::BCryptPassword