12 lines
246 B
JavaScript
12 lines
246 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Controller.extend({
|
|
actions: {
|
|
delete: function() {
|
|
this.get('model').destroyRecord().then(() => {
|
|
this.transitionToRoute('protected.species.index');
|
|
});
|
|
},
|
|
},
|
|
|
|
});
|