Module: DataMapper::Adapters

### Home Classes Methods

### In Files

- lib/dm-aggregates.rb

### Methods

- ::aggregate_module
- ::include_aggregate_api
- #const_added

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- DataMapper
- DataMapper::Adapters
- DataMapper::Aggregates
- DataMapper::Aggregates::Collection
- DataMapper::Aggregates::DataObjectsAdapter
- DataMapper::Aggregates::Functions
- DataMapper::Aggregates::Model
- DataMapper::Aggregates::Operators
- DataMapper::Aggregates::Query
- DataMapper::Aggregates::Repository
- Symbol

No matching classes.

# DataMapper::Adapters

### Public Class Methods

aggregate_module(const_name) click to toggle source

    # File lib/dm-aggregates.rb, line 35
    def self.aggregate_module(const_name)
      Aggregates.const_get(const_name)
    end

include_aggregate_api(const_name) click to toggle source

    # File lib/dm-aggregates.rb, line 24
    def self.include_aggregate_api(const_name)
      require aggregate_extensions(const_name)
      if Aggregates.const_defined?(const_name)
        adapter = const_get(const_name)
        adapter.send(:include, aggregate_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 aggregates
    end

### Public Instance Methods

const_added(const_name) click to toggle source

@api private

    # File lib/dm-aggregates.rb, line 51
    def const_added(const_name)
      include_aggregate_api(const_name)
      super
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.