Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7006

Show
Ignore:
Timestamp:
06/12/07 16:46:25 (1 year ago)
Author:
bitsweat
Message:

Fix precedence error in failsafe rescue. Closes #8625.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/lib/dispatcher.rb

    r7002 r7006  
    4141    rescue Exception => exception  # errors from CGI dispatch 
    4242      failsafe_response(cgi, output, '500 Internal Server Error', exception) do 
    43         controller ||= ApplicationController rescue ActionController::Base 
     43        controller ||= (ApplicationController rescue ActionController::Base) 
    4444        controller.process_with_exception(request, response, exception).out(output) 
    4545      end