The-M-Project icon indicating copy to clipboard operation
The-M-Project copied to clipboard

remove of an model from the bikine store

Open kwakayama opened this issue 11 years ago • 0 comments

By using the LocalStorageStore, I can delete my Model with the 'destroy' method. When I'm using the BikiniStore the DELETE request throws a 404. I figured out that BikiniStore uses as default '_id' instead of 'id'. So I added this line to my model:

 idAttribute: '_id'

Now it works fine with the LocalStorageStore and BikiniStore. Maybe the BikiniStore should use the id as default.

kwakayama avatar Dec 13 '13 07:12 kwakayama