Module: TorqueBox::Transactions::ActiveRecordAdapters::XAResource Private

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

#commit_transaction_recordsObject

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.

Defer execution of these tx-related callbacks invoked by DatabaseStatements.transaction() until after the XA tx is either committed or rolled back.



64
65
66
# File 'lib/torquebox/active_record_adapters.rb', line 64

def commit_transaction_records(*)
  super if Manager.current.should_commit?(self)
end

#rollback_transaction_recordsObject

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.



67
68
69
# File 'lib/torquebox/active_record_adapters.rb', line 67

def rollback_transaction_records(*)
  super if Manager.current.should_rollback?(self)
end