diff options
author | Jorge Bejar <jorge@wyeworks.com> | 2015-07-20 16:38:09 -0300 |
---|---|---|
committer | Jorge Bejar <jorge@wyeworks.com> | 2015-12-09 10:53:45 -0300 |
commit | 6fa2023c816e8dc8d2735a5fe87098ef5d8253f9 (patch) | |
tree | efa9a44d6ef690d2be21629cb4663524c3334494 /railties/lib/rails/application | |
parent | 668d94fff644e87d49004e4f48143f5561e8c9a0 (diff) | |
download | rails-6fa2023c816e8dc8d2735a5fe87098ef5d8253f9.tar.gz rails-6fa2023c816e8dc8d2735a5fe87098ef5d8253f9.tar.bz2 rails-6fa2023c816e8dc8d2735a5fe87098ef5d8253f9.zip |
DebugException initialize with a response_format value
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r-- | railties/lib/rails/application/default_middleware_stack.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/default_middleware_stack.rb b/railties/lib/rails/application/default_middleware_stack.rb index 9201395091..ed6a1f82d3 100644 --- a/railties/lib/rails/application/default_middleware_stack.rb +++ b/railties/lib/rails/application/default_middleware_stack.rb @@ -57,7 +57,7 @@ module Rails # Must come after Rack::MethodOverride to properly log overridden methods middleware.use ::Rails::Rack::Logger, config.log_tags middleware.use ::ActionDispatch::ShowExceptions, show_exceptions_app - middleware.use ::ActionDispatch::DebugExceptions, app, config.api_only + middleware.use ::ActionDispatch::DebugExceptions, app, config.debug_exception_response_format middleware.use ::ActionDispatch::RemoteIp, config.action_dispatch.ip_spoofing_check, config.action_dispatch.trusted_proxies unless config.cache_classes |