RESTAdapter doesnt fire DELETE requests


#1

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…


#2

Since 1.0 beta, you need to call save() on the object after you call deleteRecord()