Skip to content

Commit

Permalink
Compress and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rothlis committed Sep 7, 2016
1 parent 49bf582 commit c501944
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angularjs-rails-resource",
"version": "2.3.0",
"main": "angularjs-rails-resource.js",
"main": "dist/angularjs-rails-resource.js",
"description": "A resource factory inspired by $resource from AngularJS",
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions dist/angularjs-rails-resource.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* A resource factory inspired by $resource from AngularJS
* @version v2.2.1 - 2016-08-15
* @version v2.3.0 - 2016-09-07
* @link https://github.com/FineLinePrototyping/angularjs-rails-resource.git
* @author
*/
Expand Down Expand Up @@ -1471,13 +1471,13 @@
};

angular.forEach(['post', 'put', 'patch'], function (method) {
RailsResource['$' + method] = function (url, data, resourceConfigOverrides) {
RailsResource['$' + method] = function (url, data, resourceConfigOverrides, queryParams) {
// clone so we can manipulate w/o modifying the actual instance
data = angular.copy(data);
return this.$http(angular.extend({method: method, url: url, data: data}, this.getHttpConfig()), null, resourceConfigOverrides);
return this.$http(angular.extend({method: method, url: url, data: data}, this.getHttpConfig(queryParams)), null, resourceConfigOverrides);
};

RailsResource.prototype['$' + method] = function (url, queryParams) {
RailsResource.prototype['$' + method] = function (url, context, queryParams) {
// clone so we can manipulate w/o modifying the actual instance
var data = angular.copy(this, {});
return this.constructor.$http(angular.extend({method: method, url: url, data: data}, this.constructor.getHttpConfig(queryParams)), this);
Expand Down
4 changes: 2 additions & 2 deletions dist/angularjs-rails-resource.min.js

Large diffs are not rendered by default.

Binary file modified dist/angularjs-rails-resource.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/extensions/snapshots.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "angularjs-rails-resource",
"description" : "A resource factory inspired by $resource from AngularJS",
"version": "2.3.0",
"main" : "angularjs-rails-resource.min.js",
"main" : "dist/angularjs-rails-resource.js",
"homepage" : "https://github.com/FineLinePrototyping/angularjs-rails-resource.git",
"author" : "",
"repository": {
Expand Down

0 comments on commit c501944

Please sign in to comment.