Hey, @magnusvk, I just realised that this code https://github.com/magnusvk/after_commit_action/blob/master/lib/after_commit_action.rb#L23
leads to triggering all after_commit callbacks on the model that don't have on option, which might not be an expected behaviour.
Checking all open transaction if they include current record can be slow, not sure what is the best solution here.
Hey, @magnusvk, I just realised that this code https://github.com/magnusvk/after_commit_action/blob/master/lib/after_commit_action.rb#L23
leads to triggering all
after_commitcallbacks on the model that don't haveonoption, which might not be an expected behaviour.Checking all open transaction if they include current record can be slow, not sure what is the best solution here.