Skip to content

Commit

Permalink
Add some minor updates to the store documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bmac committed Nov 21, 2016
1 parent 96ecf96 commit 4e256dc
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions addon/-private/system/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,23 @@ Store = Service.extend({
},

/**
The adapter to use to communicate to a backend server or other persistence layer.
This can be specified as an instance, class, or string.
The default adapter to use to communicate to a backend server or
other persistence layer. This will be overridden by an application
adapter if present.
If you want to specify `app/adapters/custom.js` as a string, do:
```js
adapter: 'custom'
import DS from 'ember-data';
export default DS.Store.extend({
adapter: 'custom',
});
```
@property adapter
@default DS.JSONAPIAdapter
@type {(DS.Adapter|String)}
@default '-json-api'
@type {String}
*/
adapter: '-json-api',

Expand Down Expand Up @@ -1046,7 +1050,7 @@ Store = Service.extend({
```
@method hasRecordForId
@param {(String|DS.Model)} modelName
@param {String} modelName
@param {(String|Integer)} id
@return {Boolean}
*/
Expand Down

0 comments on commit 4e256dc

Please sign in to comment.