Module: DataMapper::Transaction::Resource

### Home Classes Methods

### In Files

- lib/dm-transactions.rb

### Methods

- #transaction

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- DataMapper
- DataMapper::Adapters
- DataMapper::Transaction
- DataMapper::Transaction::DataObjectsAdapter
- DataMapper::Transaction::Model
- DataMapper::Transaction::MysqlAdapter
- DataMapper::Transaction::OracleAdapter
- DataMapper::Transaction::PostgresAdapter
- DataMapper::Transaction::Repository
- DataMapper::Transaction::Resource
- DataMapper::Transaction::SqliteAdapter
- DataMapper::Transaction::SqlserverAdapter

No matching classes.

# DataMapper::Transaction::Resource

### Public Instance Methods

transaction() 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.