Skip to content

execute_after_commit triggers unexpected after_commit callbacks #6

@sevaorlov

Description

@sevaorlov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions