Class: Formed::Associations::HasManyAssociation

Inherits:
CollectionAssociation show all
Includes:
ForeignAssociation
Defined in:
lib/formed/associations/has_many_association.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Association

#disable_joins, #owner, #reflection, #target

Instance Method Summary collapse

Methods included from ForeignAssociation

#foreign_key_present?, #nullified_owner_attributes

Methods inherited from CollectionAssociation

#add_to_target, #build, #concat, #empty?, #find_from_target?, #include?, #load_target, #null_scope?, #reader, #replace, #reset, #scope, #size, #target=, #writer

Methods inherited from Association

#extensions, #initialize, #initialize_attributes, #klass, #load_target, #loaded!, #loaded?, #marshal_dump, #marshal_load, #reload, #reset, #reset_negative_cache, #reset_scope, #scope, #set_inverse_instance, #stale_target?

Constructor Details

This class inherits a constructor from Formed::Associations::Association

Instance Method Details

#insert_record(record, validate = true, raise = false) ⇒ Object



8
9
10
11
# File 'lib/formed/associations/has_many_association.rb', line 8

def insert_record(record, validate = true, raise = false)
  set_owner_attributes(record)
  super
end