contrived example but bear with me…
@store.findAll('user').then( (users) ->
users.get('lastObject').deleteRecord()
)
No delete request is fired to the server…
I was able to dig into ember data a little and then got over my head…
SEND: deleteRecord
Its calling a send function on DS.model which returns another function…
function (record) {
record.transitionTo('deleted.uncommitted');
record.clearRelationships();
}
I got lost about here…