Sha256: d8f00b693faefebe86a59f232156e5202a40cc390e873b130dd038b128bc7616
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
require 'settings_js/config' require 'settings_js/merger' module SettingsJs if defined?(::Rails) && defined?(::Rails::Engine) require 'settings_js/engine' end # Public: Configuration initializer. # # block - block with configuration object in parameter. # # Examples # # SettingsJs.condiguration do |config| # config.backend = 'awesome_backend' # config.klass = ApplicationSettings # config.keys = %w(key.key2 key3) # end # # Returns Nothing. def self.configuration(&block) block.call(SettingsJs::Config.instance) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
settings_js-0.3.0 | lib/settings_js.rb |
settings_js-0.2.0 | lib/settings_js.rb |