Module: DataMapper::Aggregates::Repository
- Defined in:
- lib/dm-aggregates/repository.rb
Instance Method Summary collapse
Instance Method Details
#aggregate(query) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/dm-aggregates/repository.rb', line 4 def aggregate(query) unless query.valid? [] else adapter.aggregate(query) end end |