database_flusher 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/database_flusher.rb +1 -1
- data/lib/database_flusher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43b8589940f4be6cf29476431a5a59fefce4b3e5
|
4
|
+
data.tar.gz: a1d467168f8d33c47b0681d04b57fd58cc51f2a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7d0f5e9c7375dc85199d07f063b11744a3395e3cfbc0d432126ac84996e23600f68aae2673bd68d237942b242a393cf9d16f3085912cad3fbe67dee33f6dd08
|
7
|
+
data.tar.gz: d9a54465da056726d13f7800f79d9af1f8abf81b148d2d1b09532ba2dadb1256d8e0fddcdf0e1dc371489cc1efbd47a65bbdc666a65b2d1ca89985e7a8ac0202
|
data/lib/database_flusher.rb
CHANGED
@@ -23,7 +23,7 @@ module DatabaseFlusher
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def started(event)
|
26
|
-
if event.command_name == :insert
|
26
|
+
if event.command_name == :insert || event.command_name == 'insert'.freeze
|
27
27
|
collection = event.command['insert'.freeze]
|
28
28
|
if collection
|
29
29
|
@cleaner.collections << collection
|