Skip to content

Commit

Permalink
fix(isDsModel): also check for isModel
Browse files Browse the repository at this point in the history
  • Loading branch information
gilest committed Nov 29, 2023
1 parent a1510c6 commit 5a72de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-cli-mirage/addon/utils/ember-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 5a72de0

Please sign in to comment.