Skip to content

Commit acdf36e

Browse files
authored
Fix show_exceptions setting for Rails main (#1920)
* Fix show_exceptions setting for Rails main * Add changelog entry
1 parent e017e8e commit acdf36e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ nav_order: 5
1010

1111
## main
1212

13+
* Use correct value for the `config.action_dispatch.show_exceptions` config option for edge Rails.
14+
15+
*Cameron Dutro*
16+
1317
* Remove unsupported versions of Rails & Ruby from CI matrix.
1418

1519
*Reegan Viljoen*

test/sandbox/config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
config.action_controller.perform_caching = false
1818

1919
# Raise exceptions instead of rendering exception templates
20-
config.action_dispatch.show_exceptions = false
20+
config.action_dispatch.show_exceptions = (Rails::VERSION::STRING < "7.1") ? false : :none
2121

2222
# Disable request forgery protection in test environment
2323
config.action_controller.allow_forgery_protection = false

0 commit comments

Comments
 (0)