Method: MongoMapper::Plugins::Querying::ClassMethods#destroy_all

Defined in:
lib/mongo_mapper/plugins/querying.rb

#destroy_all(options = {}) ⇒ Object



55
56
57
# File 'lib/mongo_mapper/plugins/querying.rb', line 55

def destroy_all(options={})
  find_each(options) { |document| document.destroy }
end