Please sign in to comment.
Change transaction callbacks to not swallowing errors.
Before this change any error raised inside a transaction callback are rescued and printed in the logs. Now these errors are not rescue anymore and just bubble up, as the other callbacks.
- Loading branch information...
Showing with 25 additions and 80 deletions.
- +13 −0 activerecord/CHANGELOG.md
- +2 −12 activerecord/lib/active_record/connection_adapters/abstract/transaction.rb
- +10 −19 activerecord/lib/active_record/transactions.rb
- +0 −3 activerecord/test/cases/helper.rb
- +0 −41 activerecord/test/cases/transaction_callbacks_test.rb
- +0 −5 railties/lib/rails/generators/rails/app/templates/config/application.rb