Working on deprecations

This commit is contained in:
Matthew Dillon 2015-07-15 15:49:44 -08:00
parent e91a283680
commit 7696b7008f
12 changed files with 29 additions and 18 deletions

View file

@ -5,7 +5,7 @@ export default Ember.Controller.extend({
save: function() {
let species = this.get('model');
if (species.get('isDirty')) {
if (species.get('hasDirtyAttributes')) {
species.save().then((species) => {
this.transitionToRoute('protected.species.show', species.get('id'));
}, (err) => {