Commit c50e0466 authored by Alex Kalderimis's avatar Alex Kalderimis

Merge branch '294155-refactor-jira-request' into 'master'

Move base_api_url method to a private scope

See merge request gitlab-org/gitlab!52789
parents 9279183a 1238f85f
......@@ -18,15 +18,15 @@ module Jira
request
end
private
attr_reader :jira_service, :project
# We have to add the context_path here because the Jira client is not taking it into account
def base_api_url
"#{context_path}/rest/api/#{api_version}"
end
private
attr_reader :jira_service, :project
def context_path
client.options[:context_path].to_s
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