Module: DataMapper::Aggregates

Defined in:
lib/dm-aggregates.rb,
lib/dm-aggregates/model.rb,
lib/dm-aggregates/query.rb,
lib/dm-aggregates/version.rb,
lib/dm-aggregates/functions.rb,
lib/dm-aggregates/collection.rb,
lib/dm-aggregates/repository.rb,
lib/dm-aggregates/symbol_operators.rb,
lib/dm-aggregates/adapters/dm-do-adapter.rb

Defined Under Namespace

Modules: Collection, DataObjectsAdapter, Functions, Model, Query, Repository, SymbolOperators

Constant Summary collapse

VERSION =
'1.5.0'.freeze

Class Method Summary collapse

Class Method Details

.include_aggregate_apiObject



12
13
14
15
16
17
18
19
# File 'lib/dm-aggregates.rb', line 12

def self.include_aggregate_api
  %i(Repository Model Collection Query).each do |name|
    DataMapper.const_get(name).send(:include, const_get(name))
  end
  Adapters::AbstractAdapter.descendants.each do |adapter_class|
    Adapters.include_aggregate_api(DataMapper::Inflector.demodulize(adapter_class.name))
  end
end