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"
|
||||||
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example" unless all_envs
|
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example" unless all_envs
|
||||||
else
|
else
|
||||||
$stderr.puts "WARNING: No config/app_config.yml found! Look at config/app_config.yml.example for help."
|
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"
|
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -64,7 +66,7 @@ class AppConfig
|
||||||
|
|
||||||
def self.downcase_admins
|
def self.downcase_admins
|
||||||
self.config_vars[:admins] ||= []
|
self.config_vars[:admins] ||= []
|
||||||
self.config_vars[:admins].collect! {|admin| admin.downcase}
|
self.config_vars[:admins].collect! { |admin| admin.downcase }
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.load_config_yaml filename
|
def self.load_config_yaml filename
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue