Module: DataMapper::Adapters

### Home Classes Methods

### In Files

- lib/dm-transactions.rb

### Methods

- ::include_transaction_api
- ::transaction_module
- #const_added

### 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::Adapters

### Public Class Methods

include_transaction_api(const_name) click to toggle source

    # File lib/dm-transactions.rb, line 404
    def self.include_transaction_api(const_name)
      require transaction_extensions(const_name)
      if Transaction.const_defined?(const_name)
        adapter = const_get(const_name)
        adapter.send(:include, transaction_module(const_name))
      end
    rescue LoadError
      # Silently ignore the fact that no adapter extensions could be required
      # This means that the adapter in use doesn't support transactions
    end

transaction_module(const_name) click to toggle source

    # File lib/dm-transactions.rb, line 415
    def self.transaction_module(const_name)
      Transaction.const_get(const_name)
    end

### Public Instance Methods

const_added(const_name) click to toggle source

@api private

    # File lib/dm-transactions.rb, line 433
    def const_added(const_name)
      include_transaction_api(const_name)
      super
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.