Methods

DataMapper::Transaction::Resource

Public Instance Methods

transaction() click to toggle source

Produce a new Transaction for the class of this Resource

@return [Adapters::Transaction]

a new Adapters::Transaction for the Repository
of the class of this Resource added.

@api public

# File lib/dm-transactions.rb, line 386
def transaction
  model.transaction { |*block_args| yield(*block_args) }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.