Module: DataMapper::Resource::Transaction
- Included in:
- DataMapper::Resource
- Defined in:
- lib/gems/dm-core-0.9.9/lib/dm-core/resource.rb
Overview
TODO: move to dm-more/dm-transactions
Instance Method Summary collapse
-
#transaction ⇒ Object
Produce a new Transaction for the class of this Resource.
Instance Method Details
#transaction ⇒ Object
Produce a new Transaction for the class of this Resource
Returns
- <DataMapper::Adapters::Transaction>
-
a new DataMapper::Adapters::Transaction with all DataMapper::Repositories of the class of this DataMapper::Resource added.
- TODO: move to dm-more/dm-transactions
643 644 645 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/resource.rb', line 643 def transaction model.transaction { |*block_args| yield(*block_args) } end |