Class: Yogo::Collection::Relationship::OneToOne

Inherits:
Yogo::Collection::Relationship show all
Defined in:
lib/yogo/collection/property.rb

Constant Summary

Constants inherited from Property

Property::COMMON_PROPERTIES

Instance Method Summary collapse

Methods inherited from Yogo::Collection::Relationship

#as_json, #check_target, #model_method, #target_model

Methods inherited from Property

#as_json, #field_name, #model_method, #to_s, #update_attributes

Instance Method Details

#add_to_model(model) ⇒ Object



109
110
111
# File 'lib/yogo/collection/property.rb', line 109

def add_to_model(model)
  super(model, 1)
end