Class: PassiveRecord::Associations::HasManyAssociation
- Inherits:
-
Struct
- Object
- Struct
- PassiveRecord::Associations::HasManyAssociation
- Defined in:
- lib/passive_record/associations/has_many.rb
Instance Attribute Summary collapse
-
#child_class_name ⇒ Object
Returns the value of attribute child_class_name.
-
#children_name_sym ⇒ Object
Returns the value of attribute children_name_sym.
-
#parent_class ⇒ Object
Returns the value of attribute parent_class.
Instance Method Summary collapse
Instance Attribute Details
#child_class_name ⇒ Object
Returns the value of attribute child_class_name
3 4 5 |
# File 'lib/passive_record/associations/has_many.rb', line 3 def child_class_name @child_class_name end |
#children_name_sym ⇒ Object
Returns the value of attribute children_name_sym
3 4 5 |
# File 'lib/passive_record/associations/has_many.rb', line 3 def children_name_sym @children_name_sym end |
#parent_class ⇒ Object
Returns the value of attribute parent_class
3 4 5 |
# File 'lib/passive_record/associations/has_many.rb', line 3 def parent_class @parent_class end |
Instance Method Details
#target_name_symbol ⇒ Object
8 9 10 |
# File 'lib/passive_record/associations/has_many.rb', line 8 def target_name_symbol children_name_sym end |
#to_relation(parent_model) ⇒ Object
4 5 6 |
# File 'lib/passive_record/associations/has_many.rb', line 4 def to_relation(parent_model) HasManyRelation.new(self, parent_model) end |