From acdf36eb5d31bf2abb1d8233a9857d5f29e40706 Mon Sep 17 00:00:00 2001 From: Cameron Dutro Date: Mon, 27 Nov 2023 11:15:23 -0800 Subject: [PATCH] Fix show_exceptions setting for Rails main (#1920) * Fix show_exceptions setting for Rails main * Add changelog entry --- docs/CHANGELOG.md | 4 ++++ test/sandbox/config/environments/test.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 62d2bf185..2dce8a5a0 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -10,6 +10,10 @@ nav_order: 5 ## main +* Use correct value for the `config.action_dispatch.show_exceptions` config option for edge Rails. + + *Cameron Dutro* + * Remove unsupported versions of Rails & Ruby from CI matrix. *Reegan Viljoen* diff --git a/test/sandbox/config/environments/test.rb b/test/sandbox/config/environments/test.rb index efb583c07..db6092699 100644 --- a/test/sandbox/config/environments/test.rb +++ b/test/sandbox/config/environments/test.rb @@ -17,7 +17,7 @@ config.action_controller.perform_caching = false # Raise exceptions instead of rendering exception templates - config.action_dispatch.show_exceptions = false + config.action_dispatch.show_exceptions = (Rails::VERSION::STRING < "7.1") ? false : :none # Disable request forgery protection in test environment config.action_controller.allow_forgery_protection = false