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

after_commit callback not fired second time #27

Open
kushkella opened this issue Aug 11, 2014 · 3 comments
Open

after_commit callback not fired second time #27

kushkella opened this issue Aug 11, 2014 · 3 comments

Comments

@kushkella
Copy link

I have two models. The first model's after_commit callback updates second model. And then the second model has an after_commit callback that is fired on update. Everything works fine in development but in test environment the second model's callback is never fired. To verify this, I changed the after_commit :test, :if => :persisted? to after_save :test in the second model and then everything works fine in test environment.

@grosser
Copy link
Owner

grosser commented Aug 20, 2014

yes, the simulation is not perfect, any PR welcome ... even a test with pending will help make it better

@darkleaf
Copy link

👍

@mingca
Copy link

mingca commented Nov 26, 2019

What's the temporary solution for this?

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

No branches or pull requests

4 participants