Permalink
Browse files

Help against errors in ApplicationController

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent e4f0788 commit d8739bd8cb17e9ee4d87fcd4ca6bd6122e90a191 @dhh dhh committed Feb 20, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/dispatcher.rb
@@ -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 @@ def reset_application
Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT)
end
end
-end
+end

0 comments on commit d8739bd

Please sign in to comment.