Skip to content

Commit

Permalink
Merge pull request #3989 from HeroicEric/use-create-snapshot-options
Browse files Browse the repository at this point in the history
Rely on internalModel.createSnapshot to set adapterOptions
  • Loading branch information
fivetanley committed Dec 13, 2015
2 parents 209326f + dee1ab7 commit 5e5a879
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addon/-private/system/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5e5a879

Please sign in to comment.