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

Call add_to_transaction on #restore! as well #297

Open
wants to merge 1 commit into
base: rails4
Choose a base branch
from

Commits on Jan 13, 2016

  1. Call add_to_transaction on #restore! as well

    Under certain conditions, combining the use of paranoia and
    counter_culture can result in callbacks not being run. This is
    perhaps due to an interaction between after_commit_action and
    user-defined after_commit callbacks, but unfortunately I have been
    unable to pin this down in tests.
    
    Note this makes restore! roughly symmetric with delete/destroy in
    its existing use of add_to_transaction.
    Empact committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    865efa1 View commit details
    Browse the repository at this point in the history