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

Model lifecycle #7

Closed
jmdobry opened this issue Jan 6, 2014 · 0 comments
Closed

Model lifecycle #7

jmdobry opened this issue Jan 6, 2014 · 0 comments

Comments

@jmdobry
Copy link
Member

jmdobry commented Jan 6, 2014

DS.save and DS.destroy should support lifecycle hooks.

When defining a resource devs should be able to provide beforeCreate and afterDestroy functions, for example, that are executed at the appropriate time in a model's life cycle.

@ghost ghost assigned jmdobry Jan 7, 2014
jmdobry added a commit that referenced this issue Jan 16, 2014
Added lifecycle hooks to DS.save and DS.create. #7
This was referenced Jan 16, 2014
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