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

Class level crud #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ismasan
Copy link
Contributor

@ismasan ismasan commented May 11, 2011

Klass.destroy(instance, callback) and
Klass.save(instance, callback).

No API deprecations. Instance#destroy() and Instance#save() just delegate to class.

Motives: allows me to save a model as part of a different collection, using the target collection's persistance layer.

Tests pass, but no new tests for these class methods.

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

Successfully merging this pull request may close these issues.

1 participant