import Ember from 'ember'; export default Ember.Controller.extend({ actions: { delete: function() { this.get('model').destroyRecord().then(() => { this.transitionToRoute('protected.strains.index'); }); }, }, });