diff --git a/addon/utils/ember-data.js b/addon/utils/ember-data.js index 3ee05a9f7..aacfca3b3 100644 --- a/addon/utils/ember-data.js +++ b/addon/utils/ember-data.js @@ -1,8 +1,10 @@ /* global requirejs */ function _hasEmberData() { - let matchRegex = /^ember-data/i; - return !!(Object.keys(requirejs.entries).find(e => !!e.match(matchRegex))); + let matchRegex1 = /^ember-data/i; + let matchRegex2 = /^@ember-data/i; + + return !!(Object.keys(requirejs.entries).find(e => !!e.match(matchRegex2) || !!e.match(matchRegex1) )); } /**