Method: MongoModel::Scope#destroy
- Defined in:
- lib/mongomodel/support/scope.rb
#destroy(*ids) ⇒ Object
66 67 68 69 |
# File 'lib/mongomodel/support/scope.rb', line 66 def destroy(*ids) where(ids_to_conditions(ids)).destroy_all reset end |