module Cuba::Tools::Auth

Attributes

config[RW]

Public Instance Methods

reset_config() click to toggle source

Resets the configuration to the default (empty hash)

# File lib/cuba/tools/auth.rb, line 16
def reset_config
  @config = OpenStruct.new({
    user_class: 'User'
  })
end
setup() { |config| ... } click to toggle source
# File lib/cuba/tools/auth.rb, line 7
def setup
  yield config
end