Skip to content

Commit

Permalink
Correct import of Ember Data model blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace authored and simonexmachina committed Sep 23, 2016
1 parent c397928 commit 38f25cf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions blueprints/pouch-model/index.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 38f25cf

Please sign in to comment.