What is the recommended way of discarding changes made to records?
I have the following logic to revert dirty records to their original state.
if controller.get('isDirty')
controller.get('content').rollback()
This works unless an unsuccessful attempt has been made to commit the record.
If I try to commit the changes and the server responds with errors, it's no longer possible to rollback the record this way. In this case, does Ember Data or the RESTAdapter provide a built-in method of reverting the record to its original state?
I'm using the packaged DS.RESTAdapter
with Ember Data revision 11