Commit 3668cdf5bb4d923d5c7c7768d8d1bb092e69e179
1 parent
995e656a
Exists in
master
and in
4 other branches
Update api.js.coffee
CoffeeScript doesn't like that
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) |