class method self.new

Ruby on Rails edge

Since edge

Signature

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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close