Skip to content

Commit

Permalink
Fixes #1167: Extend condition to treat '0, which as a falsy value cur…
Browse files Browse the repository at this point in the history
…rently fails, as a valid ID
  • Loading branch information
Ryan Dale committed Jun 11, 2015
1 parent aad3a84 commit 95ea231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/restangular.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ restangular.provider('Restangular', function() {

var url = this.base(current);

if (what) {
if (what || what === 0) {
var add = '';
if (!/\/$/.test(url)) {
add += '/';
Expand Down

0 comments on commit 95ea231

Please sign in to comment.