class Rodauth::Configuration

  1. lib/rodauth.rb
Superclass: Object

Methods

Public Class

  1. new

Public Instance

  1. apply
  2. auth
  3. enable

Attributes

auth [R]

Public Class methods

new(auth, &block)
[show source]
    # File lib/rodauth.rb
380 def initialize(auth, &block)
381   @auth = auth
382   # simplecov:disable
383   # Only for backwards compatibility
384   # RODAUTH3: Remove
385   apply(&block) if block
386   # simplecov:enable
387 end

Public Instance methods

apply(&block)
[show source]
    # File lib/rodauth.rb
389 def apply(&block)
390   load_feature(:base)
391   instance_exec(&block)
392 end
enable(*features)
[show source]
    # File lib/rodauth.rb
394 def enable(*features)
395   features.each do |feature|
396     next if @auth.features.include?(feature)
397     load_feature(feature)
398     @auth.features << feature
399   end
400 end