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
15 16 17 |
# File 'lib/passive_record/associations/has_one.rb', line 15 def association @association end |
#parent_model ⇒ Object
Returns the value of attribute parent_model
15 16 17 |
# File 'lib/passive_record/associations/has_one.rb', line 15 def parent_model @parent_model end |
Instance Method Details
#singular? ⇒ Boolean
16 17 18 |
# File 'lib/passive_record/associations/has_one.rb', line 16 def singular? true end |