Skip to content

Commit

Permalink
Release v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
brettshollenberger committed Mar 4, 2014
1 parent 6fca272 commit a05b058
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ActiveResource",
"version": "0.7.2",
"version": "0.7.3",
"authors": [
"Brett Shollenberger <brett.shollenberger@gmail.com>"
],
Expand Down
10 changes: 1 addition & 9 deletions dist/ng-active-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -1227,12 +1227,6 @@ angular.module('ActiveResource').provider('ARGET', function () {
return truth;
}
;
function appendSlashForQueryString(url) {
if (url.slice(-1) == '/')
return url;
return url + '/';
}
;
return function generateGET(instance, url, terms, options) {
var instanceAndTerms = transformSearchTermsToForeignKeys(instance, terms);
var associatedInstance, terms, propertyName;
Expand All @@ -1245,10 +1239,9 @@ angular.module('ActiveResource').provider('ARGET', function () {
if (queryableByParams(url, terms)) {
url = URLify(url, terms);
} else if (Object.keys(terms).length) {
url = url.replace(/\:\w+/, '');
url = url.replace(/\/\:\w+/, '').replace(/\:\w+/g, '');
config.params = terms;
}
url = appendSlashForQueryString(url);
return $http.get(url, config).then(function (response) {
var data = response.data;
if (propertyName && associatedInstance) {
Expand Down Expand Up @@ -1777,7 +1770,6 @@ angular.module('ActiveResource').provider('ARBase', function () {
} else {
config = { params: queryterms };
}
url += '/';
return $http.delete(url, config).then(function (response) {
if (response.status == 200) {
removeFromWatchedCollections(instance);
Expand Down
2 changes: 1 addition & 1 deletion dist/ng-active-resource.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ActiveResource",
"version": "0.7.2",
"version": "0.7.3",
"description": "RESTful resource modeling",
"main": "index.js",
"author": "Brett Shollenberger <brett@facultycreative.com>",
Expand Down

0 comments on commit a05b058

Please sign in to comment.