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 committed Jun 21, 2016
1 parent 306fe68 commit 5069787
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 5069787

Please sign in to comment.