Ignacio Baixas
Ignacio Baixas
I was just thinking about making it independent from view implementation, how does batmanjs handles it?
Not sure if the Backbone api will match $restmod's, but is probable a good starting point for this, specially for stuff related to integration with local storage. Basically this is...
You can give a single resource instance a different url by building it using the `$single` method: ``` javascript var myModelInst = MyModel.$single('/api/wharever'); ``` If you need to change the...
You don't need to `JSON.stringify` $http will handle that for you. To add a method to a class use '@' at the model definition object: ``` javascript $restmod.model('url', { '@myClassMethod':...
@amcdnl, about the custom url, you could always override the $url method. Maybe the `findOne` example if better handled by a _hasMany_ relation?
1. You should use $single: `var oneRecord = Settings.$single('api/settings').$fetch()` (fetch is optional). 2. Thats weird, could you copy here the entire code you are using when defining the model?
Wow, both libraries looks awesome and very complete.. I must say that _the-abstractions-are-leaking_ lib made me a little envious, the lib structure is awesome, very nicely written.. I also liked...
There seems to be a bug in restmod when using the same value for `key` as the association name, it tries to handle the key as inline data for the...
I'll probably add this as an extension, not many server frameworks use it.
I think your second approach it's fine, can't think on another way. Maybe this could better be solved by supporting collection suffix and collection scopes, so you could do something...