method

add_aggregate_reflection

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection
add_aggregate_reflection(ar, name, reflection) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/reflection.rb, line 28
      def add_aggregate_reflection(ar, name, reflection)
        ar.aggregate_reflections = ar.aggregate_reflections.merge(-name.to_s => reflection)
      end
Register or log in to add new notes.