We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e0739e + 5a72de0 commit 259505cCopy full SHA for 259505c
2 files changed
packages/ember-cli-mirage/addon/utils/ember-data.js
@@ -11,5 +11,5 @@ export const hasEmberData =
11
@hide
12
*/
13
export function isDsModel(m) {
14
- return m && typeof m.eachRelationship === 'function';
+ return m && typeof m.eachRelationship === 'function' && m.isModel === true;
15
}
test-packages/01-basic-app/app/models/shim.js
@@ -0,0 +1,10 @@
1
+// Mimics the static apis of ShimModelClass from ember-data
2
+export default class Shim {
3
+ fields;
4
+ attributes;
5
+ relationshipsByName;
6
+
7
+ eachAttribute() {}
8
+ eachRelationship() {}
9
+ eachTransformedAttribute() {}
10
+}
0 commit comments