aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2019-04-19 15:38:57 +0200
committerGitHub <noreply@github.com>2019-04-19 15:38:57 +0200
commit10da0a27512e108a5cde3eeba774b01c15f6c43a (patch)
tree95f93befe2e9723cade192bc6af06412bf6f6f6f /railties/lib/rails
parent3c8ea319d0fa4cd1e707a294ce1be4ffc8cd78b9 (diff)
parentfeaaa7576a0774471e36dc59730a886f623712e6 (diff)
downloadrails-10da0a27512e108a5cde3eeba774b01c15f6c43a.tar.gz
rails-10da0a27512e108a5cde3eeba774b01c15f6c43a.tar.bz2
rails-10da0a27512e108a5cde3eeba774b01c15f6c43a.zip
Merge pull request #34788 from gsamokovarov/actionable-errors
Introduce Actionable Errors
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/application/default_middleware_stack.rb1
1 files changed, 1 insertions, 0 deletions
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