Closed Pixelik closed 11 months ago
Instead of accessing a Model with:
// ember-cli-mirage/ember-data.js let modelName = matches[1]; let model = require(path, null, null, true).default
It will now be accessed with:
// ember-cli-mirage/ember-data.js let modelName = matches[1]; let model = application.__container__.lookup('service:store').modelFor(modelName)
And per https://github.com/miragejs/ember-cli-mirage/issues/2445 the idea of auto-discovering models for ED will probably go away as well
Instead of accessing a Model with:
It will now be accessed with: