class ActiveReporter::Aggregator::Array
Public Instance Methods
aggregate(groups)
click to toggle source
Calls superclass method
ActiveReporter::Aggregator::Base#aggregate
# File lib/active_reporter/aggregator/array.rb, line 4 def aggregate(groups) fail InvalidParamsError, 'array aggregator is only supported in Postgres' unless ActiveReporter.database_type == :postgres super end
function()
click to toggle source
# File lib/active_reporter/aggregator/array.rb, line 9 def function "ARRAY_AGG(#{expression})" end