From dee1ab72758f511817f54a5bbb4205d1723e5681 Mon Sep 17 00:00:00 2001 From: Eric Kelly Date: Sat, 12 Dec 2015 15:45:33 -0500 Subject: [PATCH] Rely on internalModel.createSnapshot to set adapterOptions `internalModel.createSnapshot` already sets the `adapterOptions` on the new snapshot the same way when `options` are provided. --- addon/-private/system/store.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addon/-private/system/store.js b/addon/-private/system/store.js index e09f41c8734..0b74380e0bd 100644 --- a/addon/-private/system/store.js +++ b/addon/-private/system/store.js @@ -524,8 +524,7 @@ Store = Service.extend({ } // Refetch the record if the adapter thinks the record is stale - var snapshot = internalModel.createSnapshot(); - snapshot.adapterOptions = options && options.adapterOptions; + var snapshot = internalModel.createSnapshot(options); var typeClass = internalModel.type; var adapter = this.adapterFor(typeClass.modelName); if (adapter.shouldReloadRecord(this, snapshot)) {