debian-mirror-gitlab/config/initializers/query_limiting.rb
2018-03-17 18:26:18 +05:30

9 lines
333 B
Ruby

if Gitlab::QueryLimiting.enable?
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