af5da7564e
https://community.atlassian.com/t5/Jira-questions/Is-it-quot-JIRA-quot-or-quot-Jira-quot/qaq-p/681163 Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
11 lines
372 B
Ruby
11 lines
372 B
Ruby
# 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
|