From fd3b37a38df7695747f221a4cbc3b680f961991d Mon Sep 17 00:00:00 2001 From: otegami Date: Thu, 22 Aug 2024 08:45:17 +0900 Subject: [PATCH] config action_controller: configure deprecation warnings for comparing Parameters and Hash GitHub: ref GH-34 This setting is default in Rails v7.1. When comparing `ActionController::Parameters` and `Hash`, the system now emits a configurable deprecation message. This behavior is controlled by this setting. Now the default setting is false. So it suppress these deprecations. --- config/initializers/new_framework_defaults_7_1.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/new_framework_defaults_7_1.rb b/config/initializers/new_framework_defaults_7_1.rb index 864c530..94d2d58 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -25,7 +25,7 @@ # Do not treat an `ActionController::Parameters` instance # as equal to an equivalent `Hash` by default. #++ -# Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality = false +Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality = false ### # Active Record Encryption now uses SHA-256 as its hash digest algorithm.