Failing test case for "after_commit" on destroy#228
Failing test case for "after_commit" on destroy#228skorfmann wants to merge 1 commit intorubysherpas:rails4from
Conversation
|
@skorfmann I am facing the same problem because our application is using paranoia and sunspot together. The latter is dependent on the |
|
@Martin288 I think we went this solution and it's working fine for us |
|
@skorfmann cool! But I have fallback to use |
|
👍 to this PR please! |
|
I am not exactly clear why but the workaround @skorfmann didn't work for me until I changed ^ not sure if the above is necessary as well for this change; but might give insight for anyone working on it. Also this test given might only works in Rails 5 since |
We're just upgrading an application which uses the paranoia gem (rails4 branch) to Rails 4.2.1 - We've several models which are using conditional
after_commithooks, e.g.:This breaks for
destroy, since it's depending ondestroy?which changed its behaviour with #177.Our workaround will probably look somehow like this:
However, we're wondering if anyone has (or could think of) a nicer solution for this?