Class: MongoMapper::Plugins::Associations::ManyDocumentsProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/mm_dirtier/extensions.rb

Instance Method Summary collapse

Instance Method Details

#save_to_collection(options = {}) ⇒ Object



55
56
57
# File 'lib/mm_dirtier/extensions.rb', line 55

def save_to_collection(options={})
  @target.each { |doc| doc.save(options) if doc.changed? } if @target
end