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

Changeset 7618

Show
Ignore:
Timestamp:
09/24/07 19:56:11 (1 year ago)
Author:
bitsweat
Message:

Move rescue_action_with_handler from rescue_action to perform_action so it isn't clobbered by test overrides. References #9449, closes #9645.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/rescue.rb

    r7597 r7618  
    9090        erase_results if performed? 
    9191 
    92         return if rescue_action_with_handler(exception) 
    93  
    9492        # Let the exception alter the response if it wants. 
    9593        # For example, MethodNotAllowed sets the Allow header. 
     
    177175        perform_action_without_rescue 
    178176      rescue Exception => exception  # errors from action performed 
     177        return if rescue_action_with_handler(exception) 
     178         
    179179        rescue_action(exception) 
    180180      end