Class: ActiveRecord::Associations::Builder::HasMany

Inherits:
CollectionAssociation show all
Defined in:
activerecord/lib/active_record/associations/builder/has_many.rb

Overview

:nodoc:

Constant Summary

Constants inherited from CollectionAssociation

CollectionAssociation::CALLBACKS

Instance Attribute Summary

Attributes inherited from CollectionAssociation

#block_extension

Attributes inherited from Association

#model, #name, #options, #reflection

Instance Method Summary collapse

Methods inherited from CollectionAssociation

build, #initialize, #writable?

Methods inherited from Association

build, #initialize

Constructor Details

This class inherits a constructor from ActiveRecord::Associations::Builder::CollectionAssociation

Instance Method Details

#buildObject


9
10
11
12
13
# File 'activerecord/lib/active_record/associations/builder/has_many.rb', line 9

def build
  reflection = super
  configure_dependency
  reflection
end