Skip to content

Commit

Permalink
Fix prototype patch query params
Browse files Browse the repository at this point in the history
  • Loading branch information
rothlis committed Sep 21, 2016
1 parent c501944 commit a56ffc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@
angular.forEach(angular.copy(this), function(value, key) {
if (attributesList.indexOf(key) === -1) { that[key] = undefined; }
});
return that.$patch(this.$url(), queryParams);
return that.$patch(this.$url(), this, queryParams);
};

RailsResource.prototype.get = function () {
Expand Down

0 comments on commit a56ffc7

Please sign in to comment.