Module: DataMapper::Resource::Transaction
- Included in:
- DataMapper::Resource
- Defined in:
- 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
664 665 666 |
# File 'lib/dm-core/resource.rb', line 664 def transaction model.transaction { |*block_args| yield(*block_args) } end |