mongoid-colors 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongoid-colors/colorizer.rb +2 -2
- data/lib/mongoid-colors/version.rb +1 -1
- metadata +1 -1
@@ -33,8 +33,8 @@ module MongoidColors::Colorizer
|
|
33
33
|
end
|
34
34
|
|
35
35
|
line << case m[:operation]
|
36
|
-
when /(QUERY|COUNT)/
|
37
|
-
when /(INSERT|UPDATE|MODIFY)/ then "#{m[:operation]} ".red
|
36
|
+
when /(QUERY|COUNT)/ then "#{m[:operation]} ".colorize(:green)
|
37
|
+
when /(INSERT|UPDATE|MODIFY|DELETE)/ then "#{m[:operation]} ".red
|
38
38
|
else "#{m[:operation]} "
|
39
39
|
end
|
40
40
|
|