From a56ffc7bdacd8a8bfeeacfe9e09b6b1d450f111c Mon Sep 17 00:00:00 2001 From: Sebastien Rothlisberger Date: Wed, 21 Sep 2016 10:03:52 -0400 Subject: [PATCH] Fix prototype patch query params --- vendor/assets/javascripts/angularjs/rails/resource/resource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/assets/javascripts/angularjs/rails/resource/resource.js b/vendor/assets/javascripts/angularjs/rails/resource/resource.js index 8b69a13..5431371 100644 --- a/vendor/assets/javascripts/angularjs/rails/resource/resource.js +++ b/vendor/assets/javascripts/angularjs/rails/resource/resource.js @@ -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 () {