Commit f7e95de0 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'ce_issue_10672' into 'master'

[CE] - Load 'Gitlab::Jira::Middleware' if it exists

See merge request gitlab-org/gitlab-ce!26665
parents 093629fe 0a6478d1
# 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment