Method: Config.load_and_set_settings

Defined in:
lib/config.rb

.load_and_set_settings(*sources) ⇒ Object

Loads and sets the settings constant!



53
54
55
56
57
# File 'lib/config.rb', line 53

def self.load_and_set_settings(*sources)
  name = Config.const_name
  Object.send(:remove_const, name) if Object.const_defined?(name)
  Object.const_set(name, Config.load_files(sources))
end