Commit 11703e8ece1de525a9e3fe08386cd37786409d82
Exists in
master
and in
4 other branches
Merge pull request #4297 from jdurand/patch-1
Update api.js.coffee
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/assets/javascripts/api.js.coffee
| @@ -50,5 +50,5 @@ | @@ -50,5 +50,5 @@ | ||
| 50 | callback(users) | 50 | callback(users) |
| 51 | 51 | ||
| 52 | buildUrl: (url) -> | 52 | buildUrl: (url) -> |
| 53 | - url = gon.relative_url_root + url if gon.relative_url_root.present? | 53 | + url = gon.relative_url_root + url if gon.relative_url_root? |
| 54 | return url.replace(':version', gon.api_version) | 54 | return url.replace(':version', gon.api_version) |