diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/dispatcher.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index 33f1e8d1cd..275c062ffe 100644 --- a/railties/lib/dispatcher.rb +++ b/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 @@ class Dispatcher Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT) end end -end
\ No newline at end of file +end |