summaryrefslogtreecommitdiff
path: root/config/initializers/jira.rb
blob: 05f784a6a2a1c040277e21a0da0352237332d2ec (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

# Changes JIRA DVCS user agent requests in order to be successfully handled
# by our API.
#
# Gitlab::Jira::Middleware is only defined on EE
#
# Use safe_constantize because the class may exist but has not been loaded yet
if "Gitlab::Jira::Middleware".safe_constantize
  Rails.application.config.middleware.use(Gitlab::Jira::Middleware)
end