bitovi/canjs — pull request #492 by cl-ment (2013-10-10 16:33:54+00:00)
Title: Destroy templates and attributes.

Added the ability to use attributes other than 'id' in the destroy templates:

var Person = can.Model.extend({
findAll: "GET /groups/{groupid}/persons",
findOne: "GET /groups/{groupid}/persons/{id}",
create: "POST /groups/{groupid}/persons",
update: "PUT /groups/{groupid}/persons/{id}",
destroy: "DELETE /groups/{groupid}/persons/{id}",
…
},{});

new Person({ id: 2, groupid: 4}),destroy();

I would like to be able to delete with the same way I use to update.