From 2ae0523a9f1a78a932b5c0444a856a88e976a2c4 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 24 Aug 2015 15:25:42 -0700 Subject: [PATCH] DS deprecation (rollback) --- app/pods/protected/species/edit/controller.js | 2 +- app/pods/protected/strains/edit/controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); },