class Repor::Aggregators::CountAggregator

Public Instance Methods

aggregation(groups) click to toggle source
# File lib/repor/aggregators/count_aggregator.rb, line 4
def aggregation(groups)
  groups.select("COUNT(DISTINCT #{report.table_name}.id) AS #{sql_value_name}")
end