From 994d86ce2cdadb5a6b54952a863a1f6f5f81cfd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 15 Apr 2024 01:26:01 +0200 Subject: [PATCH] Don't make ActionController::Parameters equivalent to Hash The comparison equality was supposed to be deprecated since 2016 [1], and completely deprecated in Rails 7.1 [2]. This options won't even exist in the next version of Rails [3]. [1] Pull request 23733 in https://github.com/rails/rails [2] Pull request 44812 in https://github.com/rails/rails [3] https://github.com/rails/rails/commit/43e42c1ea --- 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 864c53003..94d2d58c3 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -25,7 +25,7 @@ Rails.application.config.action_dispatch.default_headers = { # 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.