module ActiveRecord::Reflection::ClassMethods
def reflect_on_aggregation(aggregation)
Account.reflect_on_aggregation(:balance) # => the balance AggregateReflection
Returns the AggregateReflection object for the named +aggregation+ (use the symbol).
def reflect_on_aggregation(aggregation) aggregate_reflections[aggregation.to_s] end