Method: MongoMapper::Plugins::Associations::ManyDocumentsProxy#destroy_all

Defined in:
lib/mongo_mapper/plugins/associations/many_documents_proxy.rb

#destroy_all(options = {}) ⇒ Object



73
74
75
76
# File 'lib/mongo_mapper/plugins/associations/many_documents_proxy.rb', line 73

def destroy_all(options={})
  all(options).map(&:destroy)
  reset
end