New issue
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
can.Model: one URL property for REST resource #501
Comments
For me, it just hasn't been an itch I've needed to scratch. You could do something like: resourcify = function(url, static){
return can.extend({
findAll: url,
findOne: url+"/{id}",
...
}, static || {})
} MyModel = can.Model.extend(resourcify("/api/v1/items"),{}) without it being backed in |
Yes, thanks, I though maybe it would be convenient to build it in, it is not big itch for me too though. |
If we saw a pull request that documented it well, and didn't add much code, I'd accept it. Thanks! |
Closed
mjstahl
added a commit
that referenced
this issue
Apr 29, 2014
mjstahl
added a commit
that referenced
this issue
Apr 29, 2014
mjstahl
added a commit
that referenced
this issue
Apr 29, 2014
mjstahl
added a commit
that referenced
this issue
May 1, 2014
@mjstahl This should be a property, not a function, like:
It doesn't return anything. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The old question. For can.Model why not make one property
that would save one from the following code:
VOTE FOR THIS HERE: http://bithub.com/event/25881
The text was updated successfully, but these errors were encountered: