instance method
cost
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
cost()
No documentation comment.
Source
# File activemodel/lib/active_model/secure_password/bcrypt_password.rb, line 51
def cost
ActiveModel::SecurePassword.min_cost ? ::BCrypt::Engine::MIN_COST : ::BCrypt::Engine.cost
end
Defined in activemodel/lib/active_model/secure_password/bcrypt_password.rb line 51
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::SecurePassword::BCryptPassword