Skip to content

Commit 40f65b6

Browse files
committed
Use @ember-data/model import
1 parent ea63707 commit 40f65b6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

addon/utils/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import {
1111
} from '@embroider/macros';
1212

1313
let DS;
14+
let Model;
1415
if (macroCondition(dependencySatisfies('ember-data', '*'))) {
1516
DS = importSync('ember-data').default;
17+
Model = importSync('@ember-data/model').default;
1618
}
1719

1820
export { getDependentKeys, isDescriptor } from '../-private/ember-internals';
@@ -44,7 +46,7 @@ export function isPromise(p) {
4446
}
4547

4648
export function isDsModel(o) {
47-
return !!(DS && o && o instanceof DS.Model);
49+
return !!(Model && o && o instanceof Model);
4850
}
4951

5052
export function isDSManyArray(o) {

0 commit comments

Comments
 (0)