Get rid of annoying app_config.yml warning in test and development

This commit is contained in:
Sarah Mei 2011-05-14 12:52:53 -07:00
parent 01be909e38
commit 3b3ae86125

View file

@ -27,7 +27,9 @@ class AppConfig
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml"
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example" unless all_envs
else
unless Rails.env == "development" || Rails.env == "test"
$stderr.puts "WARNING: No config/app_config.yml found! Look at config/app_config.yml.example for help."
end
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example"
end