Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Allow manual rollbacks in after_save to reset object correctly #5535
Started digging into #5527 and was at least able to confirm the case was happening in the given situation, find what was causing it, and write some tests to further confirm it and the fix.
Now...I don't really pretend to know if actually fixing this is a good idea or not. The example raises
I'm also not keen on where I added the tests or the actual solution....so all around an iffy PR. But all the tests pass...so that's something.
It's my first dive into AR::Transactions, so if this is a bad idea, close the PR and no love lost. If it just needs some cleanup, let me know where to start.