Sha256: 5c4e32442565a2b60bf296cc0eb3e5ba54a7612c24a8a93f177c42ce3e3da9fc

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

require 'hibachi/railtie'

module Hibachi
  # 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.
  module Configuration
    # Manipulate the Hibachi configuration.
    def configure
      yield config
    end

    # Shorthand access to the entire Hibachi configuration.
    def config
      Rails.application.config.hibachi
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hibachi-0.0.1 lib/hibachi/configuration.rb
hibachi-0.0.1.pre lib/hibachi/configuration.rb