Skip to content
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

Resource definitions should be able to proxy DS methods #96

Closed
jmdobry opened this issue Jul 20, 2014 · 2 comments
Closed

Resource definitions should be able to proxy DS methods #96

jmdobry opened this issue Jul 20, 2014 · 2 comments
Assignees
Milestone

Comments

@jmdobry
Copy link
Member

jmdobry commented Jul 20, 2014

How it works now:

DS.defineResource('user');

DS.find('user', 5);
DS.findAll('user', {...});
// etc

How it will work:

var User = DS.defineResource('user');

User.find(5); 
DS.find('user', 5); // works same as above

User.findAll({...});
DS.findAll('user', {...}); // works same as above

// etc
@jmdobry jmdobry added this to the 0.10.1 milestone Jul 20, 2014
@jmdobry jmdobry self-assigned this Jul 20, 2014
@jmdobry
Copy link
Member Author

jmdobry commented Jul 20, 2014

See #93

jmdobry added a commit that referenced this issue Jul 20, 2014
jmdobry added a commit that referenced this issue Jul 20, 2014
@jmdobry
Copy link
Member Author

jmdobry commented Jul 20, 2014

Available as of 0.10.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant