Method: Elastictastic::ParentChild#save
- Defined in:
- lib/elastictastic/parent_child.rb
#save(options = {}) ⇒ Object
101 102 103 104 105 106 107 108 |
# File 'lib/elastictastic/parent_child.rb', line 101 def save( = {}) super self.class.child_associations.each_pair do |name, association| association.extract(self).transient_children.each do |child| child.save unless child.pending_save? end end end |