From 46b6a1b1ce0644a83ff5ee5abfa63f09281c85d9 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Mon, 20 May 2024 14:57:56 -0400 Subject: [PATCH] Raise exceptions on unpermitted parameters errors in test environment --- config/environments/test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/environments/test.rb b/config/environments/test.rb index 716bf8d31f1..edb1160eaa1 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -21,6 +21,9 @@ Rails.application.configure do config.assets_digest = false + # Raise exceptions on unpermitted parameters errors + config.action_controller.action_on_unpermitted_parameters = :raise + # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false