From 5069787060f4119a85a4cbc8bb3860e7208e3663 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Tue, 21 Jun 2016 17:09:03 -0400 Subject: [PATCH] Correct import of Ember Data model blueprint As suggested by @fsmanuel in #128 and #131. --- blueprints/pouch-model/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/blueprints/pouch-model/index.js b/blueprints/pouch-model/index.js index 3a7d2cd..ebb040a 100644 --- a/blueprints/pouch-model/index.js +++ b/blueprints/pouch-model/index.js @@ -1,3 +1,9 @@ -var EmberCliModelBlueprint = require('ember-cli/blueprints/model'); +var ModelBlueprint; -module.exports = EmberCliModelBlueprint; +try { + ModelBlueprint = require('ember-data/blueprints/model'); +} catch (e) { + ModelBlueprint = require('ember-cli/blueprints/model'); +} + +module.exports = ModelBlueprint;