diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/load_config.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/load_config.rb b/config/initializers/load_config.rb index a3dbc5f..b2b0318 100644 --- a/config/initializers/load_config.rb +++ b/config/initializers/load_config.rb @@ -2,6 +2,6 @@ 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") +defaults = load_config_file("#{Rails.root}/config/defaults.yml") || {} +config = load_config_file("#{Rails.root}/config/config.yml") || {} APP_CONFIG = defaults.merge(config).with_indifferent_access |