Working on deprecations
This commit is contained in:
parent
e91a283680
commit
7696b7008f
12 changed files with 29 additions and 18 deletions
|
@ -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) => {
|
||||
|
|
Reference in a new issue