Help against errors in ApplicationController

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2005-02-20 17:20:10 +00:00
parent e4f07888ce
commit d8739bd8cb

View File

@@ -27,8 +27,8 @@ class Dispatcher
class << self
def dispatch(cgi = CGI.new, session_options = ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS)
begin
request, response = ActionController::CgiRequest.new(cgi, session_options), ActionController::CgiResponse.new(cgi)
prepare_application
request, response = ActionController::CgiRequest.new(cgi, session_options), ActionController::CgiResponse.new(cgi)
ActionController::Routing::Routes.recognize!(request).process(request, response).out
rescue Object => exception
ActionController::Base.process_with_exception(request, response, exception).out
@@ -54,4 +54,4 @@ class Dispatcher
Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT)
end
end
end
end