DEV: Use new defaults for ActiveSupport::Digest

Use the `OpenSSL::Digest::SHA256` class for `ActiveSupport::Digest`.
This could lead to cache invalidation.
This commit is contained in:
Loïc Guitaut 2022-05-17 17:37:32 +02:00 committed by Loïc Guitaut
parent 71c74a262d
commit aa4b1d9c38

@ -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.