Class: MongoMapper::Plugins::Associations::ManyDocumentsProxy
- Inherits:
-
Object
- Object
- MongoMapper::Plugins::Associations::ManyDocumentsProxy
- 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(={}) @target.each { |doc| doc.save() if doc.changed? } if @target end |