-
Notifications
You must be signed in to change notification settings - Fork 34
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
Allow transformation for insert & update [Discussion] #8
Comments
I guess we should make the transform callback aware so that we not only
but
This would not require Thoughts? |
Oops, I though I responded. I think something like |
Per the discussion on [Issue 8](saintedlama#8) this is the functionality to execute a custom function before the model is saved. This allows for operations such as inserting a user id on a model before is it saved.
See Pull Request #10 |
I'm going to re-open until the pull request is accepted. |
This is what I'm working on now. Actually, it's done, I just need to write the tests.
The idea is that sometimes on an insert or update, you need to modify the data that will be saved. Specifically, an authenticated user POSTing a new note shouldn't have to pass in their own id if we already have it on every request. Thus the transform function.
I wanted to run this by you before I finished the tests and submitted a pull request.
The text was updated successfully, but these errors were encountered: