debian-mirror-gitlab/config/initializers/query_limiting.rb

12 lines
373 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2021-04-29 21:17:54 +05:30
if Gitlab::QueryLimiting.enabled_for_env?
2018-03-17 18:26:18 +05:30
require_dependency 'gitlab/query_limiting/active_support_subscriber'
require_dependency 'gitlab/query_limiting/transaction'
require_dependency 'gitlab/query_limiting/middleware'
Gitlab::Application.configure do |config|
config.middleware.use(Gitlab::QueryLimiting::Middleware)
end
end