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

This commit is contained in:
Alexey Verkhovsky 2005-02-21 13:34:27 +00:00
parent b1b04e1af4
commit 06e806fe30

View file

@ -68,3 +68,8 @@ require 'wiki_service'
Socket.do_not_reverse_lookup = true Socket.do_not_reverse_lookup = true
ActionController::Base.template_root ||= "#{RAILS_ROOT}/app/views/" 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'))
)