Class: DatabaseCleaner::Mongoid::Deletion
- Inherits:
-
Strategy
- Object
- Strategy
- DatabaseCleaner::Mongoid::Deletion
- Includes:
- Mongoid4Mixin, Mongoid5Mixin
- Defined in:
- lib/database_cleaner/mongoid/deletion.rb
Instance Method Summary collapse
-
#initialize(only: [], except: []) ⇒ Deletion
constructor
A new instance of Deletion.
Methods included from Mongoid5Mixin
Methods included from Mongoid4Mixin
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 |