Module: SimpleRules::Configuration

Included in:
SimpleRules
Defined in:
lib/simple_rules/configuration.rb

Constant Summary collapse

OPTION_NAMES =

Available options.

[
    :raise_not_authorized
]

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

A global configuration set via the block.

Examples:

SimpleRules.configure do |config|
  config.raise_not_authorized = true
end

Yields:

  • (_self)

Yield Parameters:



16
17
18
19
# File 'lib/simple_rules/configuration.rb', line 16

def configure
  yield self if block_given?
  self
end