Commit 11703e8e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #4297 from jdurand/patch-1

Update api.js.coffee
parents c1d43ed7 3668cdf5
......@@ -50,5 +50,5 @@
callback(users)
buildUrl: (url) ->
url = gon.relative_url_root + url if gon.relative_url_root.present?
url = gon.relative_url_root + url if gon.relative_url_root?
return url.replace(':version', gon.api_version)
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