aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/queue_adapters
diff options
context:
space:
mode:
authorEugene Kenny <elkenny@gmail.com>2018-05-10 00:24:04 +0100
committerEugene Kenny <elkenny@gmail.com>2018-05-10 00:24:04 +0100
commit2f29380c18d7754cefffbc09bebaa2007fb99929 (patch)
treec99673f97154f4b5b8b667f7fae11b21b4ecb3a7 /activejob/lib/active_job/queue_adapters
parentf507085fa2a7625324e6f4e3ecef9b27dabefb4f (diff)
downloadrails-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 'activejob/lib/active_job/queue_adapters')
0 files changed, 0 insertions, 0 deletions