Mention the "after_commit" callback in the README
donv opened this issue · 3 comments
donv commented
So that new developers can know that it exists, and know when it is called.
rafaelfranca commented
Feel free to submit a pull request.
donv commented
Hi @rafaelfranca !
Thanks for the quick response. I'll submit a PR, but I have one question first: Should "after_commit" be called for an update that is stopped by the "dirty" module since there were no changes? I would expect not, but I think I see this in at least one of our apps.
Just to clarify for the README change.
rafaelfranca commented
If no commits are made to the database it should not run. If it is happen seems like a bug.