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 strain = this.get('strain');
if (strain.get('isDirty')) {
if (strain.get('hasDirtyAttributes')) {
strain.save().then((strain) => {
this.transitionToRoute('protected.strains.show', strain);
}, (err) => {