diff options
author | Eugene Kenny <elkenny@gmail.com> | 2018-05-10 00:24:04 +0100 |
---|---|---|
committer | Eugene Kenny <elkenny@gmail.com> | 2018-05-10 00:24:04 +0100 |
commit | 2f29380c18d7754cefffbc09bebaa2007fb99929 (patch) | |
tree | c99673f97154f4b5b8b667f7fae11b21b4ecb3a7 /railties/RDOC_MAIN.rdoc | |
parent | f507085fa2a7625324e6f4e3ecef9b27dabefb4f (diff) | |
download | rails-2f29380c18d7754cefffbc09bebaa2007fb99929.tar.gz rails-2f29380c18d7754cefffbc09bebaa2007fb99929.tar.bz2 rails-2f29380c18d7754cefffbc09bebaa2007fb99929.zip |
Don't clear transaction state after manual rollback
If an `ActiveRecord::Rollback` error was raised by a persistence method
(e.g. in an `after_save` callback), this logic would potentially discard
the original state of the record from before the transaction, preventing
it from being restored later when the transaction was rolled back.
Diffstat (limited to 'railties/RDOC_MAIN.rdoc')
0 files changed, 0 insertions, 0 deletions