module Cerberus
Constants
- VERSION
Attributes
config[RW]
Public Class Methods
configure() { |config| ... }
click to toggle source
# File lib/cerberus.rb, line 14 def self.configure self.config ||= Config.new yield(config) self.config.jwt = OpenStruct.new(self.config.jwt || {}) self.config.jwt.skip_middleware_unless ||= -> { false } self.config.basic = OpenStruct.new(self.config.basic || {}) self.config.basic.enabled ||= -> { true } end