Method: ActiveRecord::Reflection::AssociationReflection#initialize
- Defined in:
- lib/active_record/reflection.rb
#initialize(macro, name, options, active_record) ⇒ AssociationReflection
Returns a new instance of AssociationReflection.
175 176 177 178 |
# File 'lib/active_record/reflection.rb', line 175 def initialize(macro, name, , active_record) super @collection = macro.in?([:has_many, :has_and_belongs_to_many]) end |