summaryrefslogtreecommitdiff
path: root/config/initializers/load_config.rb
blob: 6cfde1265dbc2da26d4547ef02d2ef2b58fab8bc (plain)
1
2
3
4
5
6
7
def load_config_file(file)
  File.exists?(file) ? YAML.load_file(file)[Rails.env] : {}
end

defaults = load_config_file("#{Rails.root}/config/defaults.yml")
config = load_config_file("#{Rails.root}/config/config.yml")
APP_CONFIG = defaults.merge(config)