Test new species (plus minor cleanup)

This commit is contained in:
Matthew Dillon 2015-11-04 13:05:03 -07:00
parent 30e7000a81
commit 19ce579983
4 changed files with 21 additions and 1 deletions

View file

@ -18,7 +18,7 @@ export default Mixin.create({
},
afterModel: function(model) {
if (!model.get('canEdit')) {
if (!model.get('isNew') && !model.get('canEdit')) {
this.transitionTo(this.get('fallbackRouteAfter'), model.get('id'));
}
},