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