diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-08-28 11:59:45 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-09-07 10:22:38 -0700 |
commit | c24c885209ac2334dc6f798c394a821ee270bec6 (patch) | |
tree | 4caeaaf4d1a21790faacda262aa09f9958c83b92 /activerecord/lib/active_record/core.rb | |
parent | f24a5517e93feaf4a7400471021764c99623d3e2 (diff) | |
download | rails-c24c885209ac2334dc6f798c394a821ee270bec6.tar.gz rails-c24c885209ac2334dc6f798c394a821ee270bec6.tar.bz2 rails-c24c885209ac2334dc6f798c394a821ee270bec6.zip |
create a transaction object and point AR objects at that object during a
transaction.
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index aad21b8e37..791ff4eaec 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -393,6 +393,7 @@ module ActiveRecord @marked_for_destruction = false @new_record = true @mass_assignment_options = nil + @txn = nil @_start_transaction_state = {} end end |