# File lib/dm-aggregates/repository.rb, line 4 def aggregate(query) unless query.valid? [] else adapter.aggregate(query) end end