From c24c885209ac2334dc6f798c394a821ee270bec6 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 28 Aug 2012 11:59:45 -0700 Subject: create a transaction object and point AR objects at that object during a transaction. --- activerecord/lib/active_record/core.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/active_record/core.rb') 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 -- cgit v1.2.3