-
Notifications
You must be signed in to change notification settings - Fork 86
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
Actable model is saved twice #82
Comments
We need both |
not asking to remove one, but the issue is |
Yeah sure, it might be. If you know how to fix it, please submit a PR! |
@manuelmeurer We have a workaround that uses however, I think we should open the issue until someone submits a PR, what you think ? 😄 |
Can you post the code of your workaround? I'm happy to try it out to see if it fixes the problem! 😄 |
@manuelmeurer Thanks ! 😄 Here's the commit: Coursemology@ca24c95 We have tested and used in our production product ( 80+ tables/models ) and turns out to be pretty stable. |
Could you test if this is still a problem with the current gem version (2.2.0)? |
@manuelmeurer Can let me know which rails version that you were testing on ? |
4.2.8 |
Let you know first @manuelmeurer, it still happens to us with 2.2.1 in rails 4.2.8. I will see if can get an example app to reproduce this, but that will take some time... |
actable.save
will trigger two update queries and theafter_save
callback is called twice.I think this is because of the bi-directional
auto_save: true
on actings as and actable model.The text was updated successfully, but these errors were encountered: