Skip to content

Commit

Permalink
config action_controller: configure deprecation warnings for comparin…
Browse files Browse the repository at this point in the history
…g Parameters and Hash

GitHub: ref rangubaGH-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.
  • Loading branch information
otegami committed Aug 21, 2024
1 parent d1fa8cd commit fd3b37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/new_framework_defaults_7_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fd3b37a

Please sign in to comment.