Skip to content

Commit

Permalink
Fix show_exceptions setting for Rails main (#1920)
Browse files Browse the repository at this point in the history
* Fix show_exceptions setting for Rails main

* Add changelog entry
  • Loading branch information
camertron authored Nov 27, 2023
1 parent e017e8e commit acdf36e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
2 changes: 1 addition & 1 deletion test/sandbox/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acdf36e

Please sign in to comment.