diff --git a/app/pods/protected/species/edit/controller.js b/app/pods/protected/species/edit/controller.js index f8edd94..429ff0b 100644 --- a/app/pods/protected/species/edit/controller.js +++ b/app/pods/protected/species/edit/controller.js @@ -20,7 +20,7 @@ export default Ember.Controller.extend({ let species = this.get('model'); species.get('errors').clear(); - species.rollback(); + species.rollbackAttributes(); this.transitionToRoute('protected.species.show', species); }, diff --git a/app/pods/protected/strains/edit/controller.js b/app/pods/protected/strains/edit/controller.js index 02e76a4..d799574 100644 --- a/app/pods/protected/strains/edit/controller.js +++ b/app/pods/protected/strains/edit/controller.js @@ -21,7 +21,7 @@ export default Ember.Controller.extend({ let strain = this.get('strain'); strain.get('errors').clear(); - strain.rollback(); + strain.rollbackAttributes(); this.transitionToRoute('protected.strains.show', strain); },