How to rollback record modifications with ember-data-1.0.0-beta6

ember-data, ember.js

Solution

Transactions are gone, but you can still call `rollback()` on a model.

For example, in an `ObjectController` you could have

actions: {
   discardChanges: function() {
      this.get('model').rollback();
   }
}

Problem

With ember-data 0.0.14 transactions could be simply `.rollback()`. But now transactions are gone. Also gone are any details on how to cancel record modifications: we only have information on how to persist records How can modifications be rolled back?

Original source