diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-08-20 11:13:39 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-08-20 15:08:49 -0700 |
commit | a4697b0cc310fd8986b9dfa226fc5c921cde603e (patch) | |
tree | bac2a398874eda8cd4791b06f7235e132d7aeab0 | |
parent | 73eeb51ea59c62dc528ad71a439bd2088edad850 (diff) | |
download | rails-a4697b0cc310fd8986b9dfa226fc5c921cde603e.tar.gz rails-a4697b0cc310fd8986b9dfa226fc5c921cde603e.tar.bz2 rails-a4697b0cc310fd8986b9dfa226fc5c921cde603e.zip |
remove unused variable
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb index 8a1787548f..a319501565 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -230,7 +230,7 @@ module ActiveRecord @_current_transaction_records.last.concat(save_point_records) end end - rescue Exception => database_transaction_rollback + rescue Exception if open_transactions == 0 rollback_db_transaction rollback_transaction_records(true) |