Get rid of annoying app_config.yml warning in test and development
This commit is contained in:
parent
01be909e38
commit
3b3ae86125
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue