From c7aff4d1e9aabd01e4f9bbcc288dccbdebeeb3f7 Mon Sep 17 00:00:00 2001 From: Alexander Stefanov-Khryukin Date: Mon, 9 Nov 2015 14:03:24 +0000 Subject: [PATCH] replace APP_CONFIG with proper one --- config/initializers/0_app_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/0_app_config.rb b/config/initializers/0_app_config.rb index d0cc9192c..e5067c740 100644 --- a/config/initializers/0_app_config.rb +++ b/config/initializers/0_app_config.rb @@ -1,4 +1,4 @@ -APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env] +APP_CONFIG = Rails.application.config_for('application') # Remove '/' from the end of url APP_CONFIG.keys.select {|key| key =~ /_url\Z/}.each {|key| APP_CONFIG[key] = APP_CONFIG[key].chomp('/') if APP_CONFIG[key].respond_to?(:chomp)} # Paginates a static array