Module: DataMapper::Model::Transaction
- Included in:
- DataMapper::Model
- Defined in:
- lib/dm-core/model.rb
Overview
TODO: move to dm-more/dm-transactions
Instance Method Summary collapse
-
#transaction(&block) ⇒ DataMapper::Adapters::Transaction a new DataMapper::Adapters::Transaction with all DataMapper::Repositories of the class of this DataMapper::Resource added.
Produce a new Transaction for this Resource class.
Instance Method Details
#transaction(&block) ⇒ DataMapper::Adapters::Transaction a new DataMapper::Adapters::Transaction with all DataMapper::Repositories of the class of this DataMapper::Resource added.
Produce a new Transaction for this Resource class
- TODO: move to dm-more/dm-transactions
454 455 456 |
# File 'lib/dm-core/model.rb', line 454 def transaction(&block) DataMapper::Transaction.new(self, &block) end |