Sha256: a39d92574d7b62456cf9f0d98e2db4cb22c9098ffb88b1bdbea1b3a1da7ad8d5

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

module AuthN
  def self.config
    @config ||= Config.new Config::DEFAULTS
  end

  class Config
    include AltStruct::M
    DEFAULTS = {
      account_klass: :Account,
      password_digest_method: :password_digest,
      login_password_key: :password,
      model_id_method: :id,
      model_critera_method: :where,
      session_key_function: ->(klass) { :"session_#{klass}_id" }
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authn-2.0.1 lib/authn/config.rb
authn-2.0.0 lib/authn/config.rb