From 06e806fe3079319d438525447de15dd6eb994dbb Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Mon, 21 Feb 2005 13:34:27 +0000 Subject: [PATCH] Added some code to config/environment.rb to accomodate recent Rails changes --- config/environment.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environment.rb b/config/environment.rb index 0cf0efa7..9e8c98d6 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -68,3 +68,8 @@ require 'wiki_service' Socket.do_not_reverse_lookup = true ActionController::Base.template_root ||= "#{RAILS_ROOT}/app/views/" +ActionController::Routing::Routes.reload +Controllers = Dependencies::LoadingModule.root( + File.expand_path(File.join(RAILS_ROOT, 'app', 'controllers')), + File.expand_path(File.join(RAILS_ROOT, 'components')) +)