Module: Hibachi::Configuration

Included in:
Hibachi
Defined in:
lib/hibachi/configuration.rb

Overview

Methods for manipulating Hibachi’s configuration settings, which are actually stored in the Rails config. This module is meant to be extend’ed onto the Hibachi main module.

Instance Method Summary collapse

Instance Method Details

#configObject

Shorthand access to the entire Hibachi configuration.



14
15
16
# File 'lib/hibachi/configuration.rb', line 14

def config
  Rails.application.config.hibachi
end

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

Manipulate the Hibachi configuration.

Yields:



9
10
11
# File 'lib/hibachi/configuration.rb', line 9

def configure
  yield config
end