From 5a72de055678e2f41c03bef92e616c3d144315eb Mon Sep 17 00:00:00 2001 From: Giles Thompson Date: Wed, 29 Nov 2023 17:22:03 +1300 Subject: [PATCH] fix(isDsModel): also check for `isModel` --- packages/ember-cli-mirage/addon/utils/ember-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }