Class: DuckRecord::Reflection::EmbedsManyReflection

Inherits:
EmbedsAssociationReflection show all
Defined in:
lib/duck_record/reflection.rb

Instance Attribute Summary

Attributes inherited from EmbedsAssociationReflection

#parent_reflection

Attributes inherited from MacroReflection

#duck_record, #name, #options, #plural_name, #scope

Instance Method Summary collapse

Methods inherited from EmbedsAssociationReflection

#add_as_source, #compute_class, #constructable?, #has_one?, #initialize, #klass, #nested?, #source_reflection, #validate?

Methods inherited from MacroReflection

#==, #compute_class, #initialize, #klass

Methods inherited from AbstractReflection

#alias_candidate, #build_association, #check_validity!, #class_name

Constructor Details

This class inherits a constructor from DuckRecord::Reflection::EmbedsAssociationReflection

Instance Method Details

#association_classObject



317
318
319
# File 'lib/duck_record/reflection.rb', line 317

def association_class
  Associations::EmbedsManyAssociation
end

#collection?Boolean

Returns:

  • (Boolean)


315
# File 'lib/duck_record/reflection.rb', line 315

def collection?; true; end

#macroObject



313
# File 'lib/duck_record/reflection.rb', line 313

def macro; :embeds_many; end