Skip to content

Commit

Permalink
Fixes #57.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed May 18, 2014
1 parent f1c1228 commit cb134e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- #54 - Adding functionality to resources
- #56 - DS.updateAll(resourceName, attrs, params[, options])
- #60 - DSHttpAdapterProvider.defaults is undefined
- #63 - DSLocalStorageAdapter

##### 0.8.1 - 02 May 2014

Expand Down
1 change: 1 addition & 0 deletions dist/angular-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3702,6 +3702,7 @@ function Resource(utils, options) {
* - `{string="id"}` - `idAttribute` - The attribute that specifies the primary key for this resource.
* - `{string=}` - `endpoint` - The attribute that specifies the primary key for this resource. Default is the value of `name`.
* - `{string=}` - `baseUrl` - The url relative to which all AJAX requests will be made.
* - `{*=}` - `meta` - A property reserved for developer use. This will never be used by the API.
* - `{object=}` - `methods` - If provided, items of this resource will be wrapped in a constructor function that is
* empty save for the attributes in this option which will be mixed in to the constructor function prototype. Enabling
* this feature for this resource will incur a slight performance penalty, but allows you to give custom behavior to what
Expand Down
5 changes: 5 additions & 0 deletions guide/angular-data/resource/resource.doc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ DS.defineResource({
} else if (!angular.isString(attrs.title)) {
cb('title must be a string!');
}
},
// the "meta" property is reserved for developer use
// it will never be used by the API
meta: {

}
});
```
Expand Down
1 change: 1 addition & 0 deletions src/datastore/sync_methods/defineResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function Resource(utils, options) {
* - `{string="id"}` - `idAttribute` - The attribute that specifies the primary key for this resource.
* - `{string=}` - `endpoint` - The attribute that specifies the primary key for this resource. Default is the value of `name`.
* - `{string=}` - `baseUrl` - The url relative to which all AJAX requests will be made.
* - `{*=}` - `meta` - A property reserved for developer use. This will never be used by the API.
* - `{object=}` - `methods` - If provided, items of this resource will be wrapped in a constructor function that is
* empty save for the attributes in this option which will be mixed in to the constructor function prototype. Enabling
* this feature for this resource will incur a slight performance penalty, but allows you to give custom behavior to what
Expand Down

0 comments on commit cb134e9

Please sign in to comment.