From f4008446052d6531aee113159d5ce17bc8c5f81c 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 3aa87f66e8f..6957265854c 100644 --- a/addon/-private/system/store.js +++ b/addon/-private/system/store.js @@ -216,19 +216,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', @@ -1017,7 +1021,7 @@ Store = Service.extend({ Returns true if a record for a given type and ID is already loaded. @method hasRecordForId - @param {(String|DS.Model)} modelName + @param {String} modelName @param {(String|Integer)} inputId @return {Boolean} */