peerigon / alamid

Framework for RESTful JavaScript web applications that run both on the server- and clientside.
http://www.alamidjs.com
MIT License
23 stars 3 forks source link

modelCache should use a resourceUrl #200

Closed jhnns closed 11 years ago

jhnns commented 11 years ago

The modelCache currently only relies on modelUrl and id. This will lead to bugs if the model is a sub-resource and has parent ids. The modelCache should use a complete resourceUrl instead, like post/23/comment/4.

You can find a re-useable implementation of such an url helper in lib/client/RemoteService.class.js