-
Notifications
You must be signed in to change notification settings - Fork 16
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
Callbacks API #31
Comments
Hallo Phillip |
I've tried it with both the PostgreSQL adapter and the SQLite adapter with the same result. |
It doesn't matter which one for solving this problem. Only when you have a problem with a task in one ore the other adapter for production purposes it should be the right adapter to begin with. :-) |
@adrian, @phillip Feel free to contact me any time if you have comments, wishes or hints. Best Frank |
…'t be saved to database if callbacks are specified“
I think the callbacks API needs to be updated. |
Describe the bug
If callback fields are specified in the model, entries cannot be saved to the database. The
save!
function expects the callback fields of the struct as columns in the database table.Error stacktrace
To reproduce
This will result in the above
UndefinedColumn
error.Expected behavior
The expected behaviour is to ignore the callback fields (
before_save
andafter_save
) of thestruct
when creating entries in the database.The text was updated successfully, but these errors were encountered: