module DataMapper::Transaction::Resource
Public Instance Methods
transaction() { |*block_args| ... }
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