Added some code to config/environment.rb to accomodate recent Rails changes

instiki-madeleine
Alexey Verkhovsky 2005-02-21 13:34:27 +00:00
parent b1b04e1af4
commit 06e806fe30
1 changed files with 5 additions and 0 deletions

View File

@ -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'))
)