Class: DuckRecord::Reflection::HasManyReflection
- Inherits:
-
AssociationReflection
- Object
- AbstractReflection
- MacroReflection
- AssociationReflection
- DuckRecord::Reflection::HasManyReflection
- Defined in:
- lib/duck_record/reflection.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from AssociationReflection
Attributes inherited from MacroReflection
#active_record, #name, #options, #plural_name
Instance Method Summary collapse
Methods inherited from AssociationReflection
#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::AssociationReflection
Instance Method Details
#association_class ⇒ Object
294 295 296 |
# File 'lib/duck_record/reflection.rb', line 294 def association_class Associations::HasManyAssociation end |
#collection? ⇒ Boolean
292 |
# File 'lib/duck_record/reflection.rb', line 292 def collection?; true; end |
#macro ⇒ Object
290 |
# File 'lib/duck_record/reflection.rb', line 290 def macro; :has_many; end |