From 54df392bc51dcf424f07ccc10157a5969256ba73 Mon Sep 17 00:00:00 2001 From: Genadi Samokovarov Date: Fri, 28 Dec 2018 14:21:30 +0200 Subject: Manage ActionDispatch::ActionableExceptions from the default middleware stack --- railties/lib/rails/application/default_middleware_stack.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/application/default_middleware_stack.rb b/railties/lib/rails/application/default_middleware_stack.rb index 193cc59f3a..9800b19274 100644 --- a/railties/lib/rails/application/default_middleware_stack.rb +++ b/railties/lib/rails/application/default_middleware_stack.rb @@ -49,6 +49,7 @@ module Rails middleware.use ::Rails::Rack::Logger, config.log_tags middleware.use ::ActionDispatch::ShowExceptions, show_exceptions_app middleware.use ::ActionDispatch::DebugExceptions, app, config.debug_exception_response_format + middleware.use ::ActionDispatch::ActionableExceptions unless config.cache_classes middleware.use ::ActionDispatch::Reloader, app.reloader -- cgit v1.2.3