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

active_record_transaction_observer.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b90b3a39ac1d383dc86059a5ef7637c64f1269f3 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

return unless Gitlab.com? || Gitlab.dev_or_test_env?

Gitlab::Application.configure do
  if Feature.feature_flags_available? && ::Feature.enabled?(:active_record_transactions_tracking, type: :ops, default_enabled: :yaml)
    Gitlab::Database::Transaction::Observer.register!
  end
end