Class: PassiveRecord::Associations::Relation

Inherits:
Struct
  • Object
show all
Defined in:
lib/passive_record/associations/has_one.rb

Direct Known Subclasses

HasOneRelation

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#associationObject

Returns the value of attribute association



15
16
17
# File 'lib/passive_record/associations/has_one.rb', line 15

def association
  @association
end

#parent_modelObject

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