module Auth
require “auth/sidekiq_up”
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/auth/engine.rb, line 30 def self.configure self.configuration ||= Configuration.new yield(configuration) self.configuration.auth_resources.keys.each do |res| ##a skip option must be present on each auth resource. if self.configuration.auth_resources[res][:skip].nil? self.configuration.auth_resources[res][:skip] = [] end ##a token_auth_options hash must be present on the ##configuration for each resource.. if self.configuration.auth_resources[res]["token_auth_options"].nil? self.configuration.auth_resources[res]["token_auth_options"] = { fallback: :exception #, #if: lambda { |controller| controller.request.format.json? } } end end ## end