lib/database_flusher.rb in database_flusher-0.1.0 vs lib/database_flusher.rb in database_flusher-0.1.1
- old
+ new
@@ -21,10 +21,10 @@
def initialize(cleaner)
@cleaner = cleaner
end
def started(event)
- if event.command_name == :insert
+ if event.command_name == :insert || event.command_name == 'insert'.freeze
collection = event.command['insert'.freeze]
if collection
@cleaner.collections << collection
end
end