Class: Redtape::Populator::HasMany

Inherits:
Abstract
  • Object
show all
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

#call, #initialize

Constructor Details

This class inherits a constructor from Redtape::Populator::Abstract

Instance Method Details

#assign_to_parentObject


4
5
6
# File 'lib/redtape/populator/has_many.rb', line 4

def assign_to_parent
  parent.send(association_name).send("<<", model)
end