Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/set_active_support_hash_digest_class.rb')
-rw-r--r--config/initializers/set_active_support_hash_digest_class.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/initializers/set_active_support_hash_digest_class.rb b/config/initializers/set_active_support_hash_digest_class.rb
new file mode 100644
index 00000000000..743b45eed34
--- /dev/null
+++ b/config/initializers/set_active_support_hash_digest_class.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+Rails.application.configure do
+ # We set ActiveSupport::Digest.hash_digest_class directly copying
+ # See https://github.com/rails/rails/blob/6-1-stable/activesupport/lib/active_support/railtie.rb#L96-L98
+ #
+ # Note that is the only usage of config.active_support.hash_digest_class
+ config.after_initialize do
+ ActiveSupport::Digest.hash_digest_class = Gitlab::HashDigest::Facade
+ end
+end