Skip to content

Commit

Permalink
Use @ember-data/model import
Browse files Browse the repository at this point in the history
  • Loading branch information
fsmanuel committed Nov 8, 2023
1 parent ea63707 commit 40f65b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import {
} from '@embroider/macros';

let DS;
let Model;
if (macroCondition(dependencySatisfies('ember-data', '*'))) {
DS = importSync('ember-data').default;
Model = importSync('@ember-data/model').default;
}

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

export function isDsModel(o) {
return !!(DS && o && o instanceof DS.Model);
return !!(Model && o && o instanceof Model);
}

export function isDSManyArray(o) {
Expand Down

0 comments on commit 40f65b6

Please sign in to comment.