Skip to content

Commit

Permalink
Merge pull request #1120 from ember-learn/shoebox
Browse files Browse the repository at this point in the history
add ember-data-fastboot to enable the shoebox across the site
  • Loading branch information
mansona committed Jul 22, 2024
2 parents e948ba8 + 86225db commit 7fc181c
Show file tree
Hide file tree
Showing 3 changed files with 440 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import JSONAPIAdapter from '@ember-data/adapter/json-api';

export default class ApplicationAdapter extends JSONAPIAdapter {
shouldBackgroundReloadAll() {
return false;
}

shouldBackgroundReloadRecord() {
return false;
}

urlForFindAll(modelName) {
const path = this.pathForType(modelName);
return `/data/${path}/all.json`;
Expand Down
Loading

0 comments on commit 7fc181c

Please sign in to comment.