Method: ActiveRecord::Associations::Builder::CollectionAssociation#build

Defined in:
activerecord/lib/active_record/associations/builder/collection_association.rb

#buildObject



21
22
23
24
25
26
# File 'activerecord/lib/active_record/associations/builder/collection_association.rb', line 21

def build
  wrap_block_extension
  reflection = super
  CALLBACKS.each { |callback_name| define_callback(callback_name) }
  reflection
end