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(={}) find_each() { |document| document.destroy } end |