Class: PassiveRecord::Associations::Relation
- Inherits:
-
Struct
- Object
- Struct
- PassiveRecord::Associations::Relation
- Defined in:
- lib/passive_record/associations/has_one.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#association ⇒ Object
Returns the value of attribute association.
-
#parent_model ⇒ Object
Returns the value of attribute parent_model.
Instance Method Summary collapse
Instance Attribute Details
#association ⇒ Object
Returns the value of attribute association
13 14 15 |
# File 'lib/passive_record/associations/has_one.rb', line 13 def association @association end |
#parent_model ⇒ Object
Returns the value of attribute parent_model
13 14 15 |
# File 'lib/passive_record/associations/has_one.rb', line 13 def parent_model @parent_model end |
Instance Method Details
#singular? ⇒ Boolean
14 15 16 |
# File 'lib/passive_record/associations/has_one.rb', line 14 def singular? true end |