- Notifications
You must be signed in to change notification settings - Fork77
Closed
Description
I would like to see the samesave(), destroy(), etc. on the returned item instances by default. Is there currently a reason why they aren't?
// Example codeModelName.find(1).then(function(item){item.destroy();});
For the mean time I am adding them withdefineResource().
varModel=DS.defineResource({name:'subjects',methods:{destroy:function(){returnModel.destroy(this.id);}}});