We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
I am not able to verify this. This test is passing:
test("#1469 - resource definition - destroy", 2, function() { can.fixture("POST /foods", function(res, respond) { res.data.id = 42; return respond(res.data); }); can.fixture("DELETE /foods/42", function() { return []; }); var FoodModel = can.Model.extend({ resource: "/foods" }, {}); stop(); ok(typeof FoodModel.destroy === 'function'); var steak = new FoodModel({name: "steak"}); steak.save(function(food) { equal(food.id, 42, 'Id set'); steak.destroy().then(function() { start(); }); }); });
Sorry, something went wrong.
Did some more research and we might want to add destroy in https://github.com/bitovi/canjs/blob/master/model/model.js#L590 but I could not create a use case that would break otherwise.
destroy
Successfully merging a pull request may close this issue.
No description provided.
The text was updated successfully, but these errors were encountered: