Class: Datamappify::Repository::UnitOfWork::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/datamappify/repository/unit_of_work/transaction.rb

Instance Method Summary collapse

Constructor Details

#initialize(data_mapper) { ... } ⇒ void

Yields:

  • queries to be performed in the transaction



11
12
13
# File 'lib/datamappify/repository/unit_of_work/transaction.rb', line 11

def initialize(data_mapper, &block)
  data_mapper.default_provider.build_criteria(:Transaction, data_mapper.default_source_class, &block)
end