Class: DatabaseCleaner::Mongoid::Deletion

Inherits:
Strategy
  • Object
show all
Includes:
Mongoid4Mixin, Mongoid5Mixin
Defined in:
lib/database_cleaner/mongoid/deletion.rb

Instance Method Summary collapse

Methods included from Mongoid5Mixin

#clean

Methods included from Mongoid4Mixin

#clean

Constructor Details

#initialize(only: [], except: []) ⇒ Deletion

Returns a new instance of Deletion.



9
10
11
12
# File 'lib/database_cleaner/mongoid/deletion.rb', line 9

def initialize only: [], except: []
  @only = only
  @except = except
end