Ticket #9645: rescue_action_override_fix.diff
| File rescue_action_override_fix.diff, 0.8 kB (added by norbert, 1 year ago) |
|---|
-
actionpack/lib/action_controller/rescue.rb
old new 89 89 log_error(exception) if logger 90 90 erase_results if performed? 91 91 92 return if rescue_action_with_handler(exception)93 94 92 # Let the exception alter the response if it wants. 95 93 # For example, MethodNotAllowed sets the Allow header. 96 94 if exception.respond_to?(:handle_response!) … … 176 174 def perform_action_with_rescue #:nodoc: 177 175 perform_action_without_rescue 178 176 rescue Exception => exception # errors from action performed 177 return if rescue_action_with_handler(exception) 178 179 179 rescue_action(exception) 180 180 end 181 181