Module: TorqueBox::Transactions::ActiveRecordAdapters::Connection Private

Included in:
ActiveRecord::ConnectionAdapters::JdbcAdapter
Defined in:
lib/torquebox/active_record_adapters.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#transactionObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



37
38
39
40
41
42
43
44
45
46
# File 'lib/torquebox/active_record_adapters.rb', line 37

def transaction(*)
  super
rescue ActiveRecord::JDBCError => e
  unless self.is_a?(XAResource)
    self.extend(XAResource)
    retry
  else
    raise
  end
end