提交 11703e8e 编写于 作者: D Dmitriy Zaporozhets

Merge pull request #4297 from jdurand/patch-1

Update api.js.coffee
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册