Class: Redtape::Populator::HasMany
- Defined in:
- lib/redtape/populator/has_many.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_many.rb', line 4 def assign_to_parent parent.send(association_name).send("<<", model) end |