diff options
-rw-r--r-- | actionpack/lib/action_controller/dispatch/dispatcher.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/dispatch/dispatcher.rb b/actionpack/lib/action_controller/dispatch/dispatcher.rb index e205245f13..df77e22204 100644 --- a/actionpack/lib/action_controller/dispatch/dispatcher.rb +++ b/actionpack/lib/action_controller/dispatch/dispatcher.rb @@ -64,6 +64,7 @@ module ActionController run_callbacks :before_dispatch Routing::Routes.call(@env) rescue Exception => exception + raise exception if controller ||= (::ApplicationController rescue Base) controller.call_with_exception(@env, exception).to_a else |