Class: Redtape::Populator::HasOne
- Defined in:
- lib/redtape/populator/has_one.rb
Instance Attribute Summary
Attributes inherited from Abstract
#association_name, #attr_whitelist, #data_mapper, #model, #parent, #pending_attributes, #whitelist_failures
Instance Method Summary collapse
Methods inherited from Abstract
Constructor Details
This class inherits a constructor from Redtape::Populator::Abstract
Instance Method Details
#assign_to_parent ⇒ Object
4 5 6 |
# File 'lib/redtape/populator/has_one.rb', line 4 def assign_to_parent parent.send("#{association_name}=", model) end |