module Sequel::Plugins::Password

Public Class Methods

configure(model, options = {}) click to toggle source
# File lib/sequel_password.rb, line 10
def self.configure(model, options = {})
  model.instance_eval do
    @column = options.fetch(:column, :password)
    @hashers = options.fetch(:hashers,
                             pbkdf2_sha256: PBKDF2Hasher.new,
                             bcrypt_sha256: BCryptSHA256Hasher.new,
                             bcrypt: BCryptHasher.new,
                             sha1: SHA1Hasher.new)
  end
end