Permalink
Browse files

Fix error on Mongo::Connection.new()

  • Loading branch information...
1 parent e5b8617 commit d2cef15c19c1eef9441c8c31067603e46051a32b @raphaelcm raphaelcm committed Feb 7, 2013
Showing with 4 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +1 −0 lib/rpm_contrib/instrumentation/mongo.rb
View
@@ -13,6 +13,9 @@ tmtags
## VIM
*.swp
+## RUBYMINE
+.idea/
+
## CTAGS
tags
TAGS
@@ -15,6 +15,7 @@
include NewRelic::Agent::MethodTracer
def instrument_with_newrelic_trace(name, payload = {}, &blk)
+ payload = {} if payload.nil?
collection = payload[:collection]
if collection == '$cmd'
f = payload[:selector].first

0 comments on commit d2cef15

Please sign in to comment.