Method: DataMapper::Transaction::DataObjectsAdapter#pop_transaction

Defined in:
lib/dm-transactions/adapters/dm-do-adapter.rb

#pop_transactionTransaction

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.

Pop the ‘current’ Transaction from the per thread Transaction stack so that everything done by this Adapter is no longer necessarily within the context of said Transaction.

Returns:

  • (Transaction)

    the former ‘current’ transaction.



47
48
49
# File 'lib/dm-transactions/adapters/dm-do-adapter.rb', line 47

def pop_transaction
  transactions.pop
end