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

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) transaction



37
38
39
40
41
42
43
44
45
46
# File 'transactions/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