Module: DataMapper::Repository::Transaction

Included in:
DataMapper::Repository
Defined in:
lib/gems/dm-core-0.9.9/lib/dm-core/repository.rb

Overview

TODO: move to dm-more/dm-transactions

Instance Method Summary collapse

Instance Method Details

#transactionDataMapper::Adapters::Transaction

Produce a new Transaction for this Repository

TODO: move to dm-more/dm-transactions

Returns:

  • (DataMapper::Adapters::Transaction)

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



160
161
162
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/repository.rb', line 160

def transaction
  DataMapper::Transaction.new(self)
end