diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-22 00:48:24 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-22 00:48:24 +0000 |
commit | 44819b47179936492c093811ed0f625ce6e029a3 (patch) | |
tree | f6653b9e9a9c8fd41dab1cc40f78e4e4d565b65c /activerecord/test | |
parent | 58f2bd0cfc1713ee3ed519d6b75bbfa386c131c3 (diff) | |
download | rails-44819b47179936492c093811ed0f625ce6e029a3.tar.gz rails-44819b47179936492c093811ed0f625ce6e029a3.tar.bz2 rails-44819b47179936492c093811ed0f625ce6e029a3.zip |
Fixed that nested transactions now work by letting the outer most transaction have the responsibilty of starting and rolling back the transaction. If any of the inner transactions swallow the exception raised, though, the transaction will not be rolled back. So always let the transaction bubble up even when you've dealt with local issues. Closes #231 and #340.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/transactions_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/transactions_test.rb b/activerecord/test/transactions_test.rb index 18b2ea3e65..cf10b7d3ee 100644 --- a/activerecord/test/transactions_test.rb +++ b/activerecord/test/transactions_test.rb @@ -84,7 +84,7 @@ class TransactionTest < Test::Unit::TestCase end end - def xtest_nested_explicit_transactions + def test_nested_explicit_transactions Topic.transaction do Topic.transaction do @first.approved = 1 |