instance method
reflect_on_all_aggregations
Ruby on Rails 2.3.18
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 36
def reflect_on_all_aggregations
reflections.values.select { |reflection| reflection.is_a?(AggregateReflection) }
end
Defined in activerecord/lib/active_record/reflection.rb line 36
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Reflection::ClassMethods