method
new
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::Reflection::AssociationReflection
new(macro, name, options, active_record)public
No documentation available.
# File activerecord/lib/active_record/reflection.rb, line 175
def initialize(macro, name, options, active_record)
super
@collection = macro.in?([:has_many, :has_and_belongs_to_many])
end