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
305 def initialize(auth, &block)
306   @auth = auth
307   # :nocov:
308   # Only for backwards compatibility
309   # RODAUTH3: Remove
310   apply(&block) if block
311   # :nocov:
312 end

Public Instance methods

apply(&block)
[show source]
    # File lib/rodauth.rb
314 def apply(&block)
315   load_feature(:base)
316   instance_exec(&block)
317 end
enable(*features)
[show source]
    # File lib/rodauth.rb
319 def enable(*features)
320   features.each do |feature|
321     next if @auth.features.include?(feature)
322     load_feature(feature)
323     @auth.features << feature
324   end
325 end