Module: DataMapper::Transaction::Repository

Defined in:
lib/dm-transactions.rb

Instance Method Summary collapse

Instance Method Details

#transactionAdapters::Transaction

Produce a new Transaction for this Repository

Returns:

  • (Adapters::Transaction)

    a new Transaction (in state :none) that can be used to execute code #with_transaction



353
354
355
# File 'lib/dm-transactions.rb', line 353

def transaction
  Transaction.new(self)
end