module Authoryze
Constants
- VERSION
Public Class Methods
configuration()
click to toggle source
@public Returns the global configuration, or initializes a new configuration object if it doesn’t exist yet.
# File lib/authoryze.rb, line 18 def configuration @configuration ||= Authoryze::Configuration.new end
configure() { |configuration| ... }
click to toggle source
@public Yields the global configuration to a block. @yield [configuration] global configuration
@example
Authoryze.configure do |c| c.root = 'path/to/ruote/assets' end
# File lib/authoryze.rb, line 31 def configure(&block) unless block_given? raise ArgumentError.new("You tried to .configure without a block!") end yield configuration end
reset!()
click to toggle source
# File lib/authoryze.rb, line 38 def reset! @configuration = nil end