Module: ActiveConfigRails
- Defined in:
- lib/active_config_rails.rb,
lib/active_config_rails/templates/active_config_initializer.rb
Defined Under Namespace
Modules: Generators
Class Method Summary collapse
Class Method Details
.init_conf ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/active_config_rails/templates/active_config_initializer.rb', line 3 def init_conf if Object.const_defined? :CONF Object.send(:remove_const, :CONF) end etc_dir = File.dirname(File.(__FILE__)) + '/../../etc' Object.const_set(:CONF,ActiveConfig.new(:path => etc_dir)) end |