instance method
reflect_on_all_aggregations
Ruby on Rails 4.0.13
Since v2.2.3Signature
reflect_on_all_aggregations()
Returns an array of AggregateReflection objects for all the aggregations in the class.
Source
# File activerecord/lib/active_record/reflection.rb, line 34
def reflect_on_all_aggregations
reflections.values.grep(AggregateReflection)
end
Defined in activerecord/lib/active_record/reflection.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Reflection::ClassMethods