class ActiveRecord::Reflection::AggregateReflection
def mapping
Active Record class.
Holds all the metadata about an aggregation as it was specified in the
def mapping mapping = options[:mapping] || [name, name] mapping.first.is_a?(Array) ? mapping : [mapping] end