2019-04-01 08:55:52 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-06-28 13:25:56 +00:00
|
|
|
# Changes Jira DVCS user agent requests in order to be successfully handled
|
2019-04-01 08:55:52 +00:00
|
|
|
# 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
|