diff --git a/packages/ember-cli-mirage/addon/utils/ember-data.js b/packages/ember-cli-mirage/addon/utils/ember-data.js index 801056207..a1b9300aa 100644 --- a/packages/ember-cli-mirage/addon/utils/ember-data.js +++ b/packages/ember-cli-mirage/addon/utils/ember-data.js @@ -11,5 +11,5 @@ export const hasEmberData = @hide */ export function isDsModel(m) { - return m && typeof m.eachRelationship === 'function'; + return m && typeof m.eachRelationship === 'function' && m.isModel === true; } diff --git a/test-packages/01-basic-app/app/models/shim.js b/test-packages/01-basic-app/app/models/shim.js new file mode 100644 index 000000000..26e851a82 --- /dev/null +++ b/test-packages/01-basic-app/app/models/shim.js @@ -0,0 +1,10 @@ +// Mimics the static apis of ShimModelClass from ember-data +export default class Shim { + fields; + attributes; + relationshipsByName; + + eachAttribute() {} + eachRelationship() {} + eachTransformedAttribute() {} +}