Commit 1238f85f authored by Arturo Herrero's avatar Arturo Herrero

Move base_api_url method to private scope

parent 632b7768
......@@ -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