Module: DataMapper::Repository::Transaction

Included in:
DataMapper::Repository
Defined in:
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



152
153
154
# File 'lib/dm-core/repository.rb', line 152

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