Method: MongoModel::Scope#destroy_all

Defined in:
lib/mongomodel/support/scope.rb

#destroy_allObject



61
62
63
64
# File 'lib/mongomodel/support/scope.rb', line 61

def destroy_all
  to_a.each { |doc| doc.destroy }
  reset
end