Module: Vorpal::ToOneConfig
- Included in:
- BelongsToConfig, HasOneConfig
- Defined in:
- lib/vorpal/configs.rb
Instance Method Summary collapse
Instance Method Details
#associate(parent, child) ⇒ Object
248 249 250 |
# File 'lib/vorpal/configs.rb', line 248 def associate(parent, child) parent.send("#{name}=", child) end |
#get_child(parent) ⇒ Object
244 245 246 |
# File 'lib/vorpal/configs.rb', line 244 def get_child(parent) parent.send(name) end |