#906: APP_CONFIG should be initialized before all

This commit is contained in:
Vokhmin Alexey V 2013-03-04 15:51:51 +04:00
parent b07d683a81
commit 7f21d40255
2 changed files with 2 additions and 2 deletions

View File

@ -0,0 +1,2 @@
# -*- encoding : utf-8 -*-
APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env]

View File

@ -1,6 +1,4 @@
# -*- encoding : utf-8 -*- # -*- encoding : utf-8 -*-
APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env]
Dir[Rails.root.join("lib/ext/**/*.rb")].each {|f| require f} Dir[Rails.root.join("lib/ext/**/*.rb")].each {|f| require f}
require 'modules' require 'modules'
require 'plugins' require 'plugins'