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

Changeset 7007

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

Merge [7006] to stable: fix precedence error in failsafe rescue. References #8625.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1-2-stable/railties/lib/dispatcher.rb

    r7003 r7007  
    4343    rescue Exception => exception  # errors from CGI dispatch 
    4444      failsafe_response(output, '500 Internal Server Error', exception) do 
    45         controller ||= ApplicationController rescue ActionController::Base 
     45        controller ||= (ApplicationController rescue ActionController::Base) 
    4646        controller.process_with_exception(request, response, exception).out(output) 
    4747      end