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

set_active_support_hash_digest_class.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 743b45eed347bf2da048f4369938c7d5f498811a (plain)
1
2
3
4
5
6
7
8
9
10
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