From 4e256dc85e17b2e05b6b705be3780f30bc8f1967 Mon Sep 17 00:00:00 2001 From: bmac Date: Mon, 14 Nov 2016 11:55:31 -0500 Subject: [PATCH] Add some minor updates to the store documentation --- addon/-private/system/store.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/addon/-private/system/store.js b/addon/-private/system/store.js index 48dbf07fd77..2d2aabf5fb9 100644 --- a/addon/-private/system/store.js +++ b/addon/-private/system/store.js @@ -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', @@ -1046,7 +1050,7 @@ Store = Service.extend({ ``` @method hasRecordForId - @param {(String|DS.Model)} modelName + @param {String} modelName @param {(String|Integer)} id @return {Boolean} */