From aa4b1d9c38d2ed56d36b3a269b31a66e791c62f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guitaut?= Date: Tue, 17 May 2022 17:37:32 +0200 Subject: [PATCH] DEV: Use new defaults for ActiveSupport::Digest Use the `OpenSSL::Digest::SHA256` class for `ActiveSupport::Digest`. This could lead to cache invalidation. --- config/initializers/new_framework_defaults_7_0.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb index 43f6f416229..7ee8ffa85fe 100644 --- a/config/initializers/new_framework_defaults_7_0.rb +++ b/config/initializers/new_framework_defaults_7_0.rb @@ -30,7 +30,7 @@ Rails.application.config.action_view.apply_stylesheet_media_default = false # Change the digest class for ActiveSupport::Digest. # Changing this default means that for example Etags change and # various cache keys leading to cache invalidation. -# Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256 +Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256 # Don't override ActiveSupport::TimeWithZone.name and use the default Ruby # implementation.