We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea63707 commit 40f65b6Copy full SHA for 40f65b6
1 file changed
addon/utils/utils.js
@@ -11,8 +11,10 @@ import {
11
} from '@embroider/macros';
12
13
let DS;
14
+let Model;
15
if (macroCondition(dependencySatisfies('ember-data', '*'))) {
16
DS = importSync('ember-data').default;
17
+ Model = importSync('@ember-data/model').default;
18
}
19
20
export { getDependentKeys, isDescriptor } from '../-private/ember-internals';
@@ -44,7 +46,7 @@ export function isPromise(p) {
44
46
45
47
48
export function isDsModel(o) {
- return !!(DS && o && o instanceof DS.Model);
49
+ return !!(Model && o && o instanceof Model);
50
51
52
export function isDSManyArray(o) {
0 commit comments