Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mongoid instrument only support mongoid 2.x

  • Loading branch information...
commit 53763f833b14bcc06bcb3ccbcba20999401d80bf 1 parent 7d6f456
@arthurnn arthurnn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rpm_contrib/instrumentation/mongoid.rb
View
2  lib/rpm_contrib/instrumentation/mongoid.rb
@@ -2,7 +2,7 @@
@name = :mongoid
depends_on do
- defined?(::Mongoid) and not NewRelic::Control.instance['disable_mongoid']
+ defined?(::Mongoid) && Mongoid::VERSION.to_i == 2 && !NewRelic::Control.instance['disable_mongoid']
end
executes do
Please sign in to comment.
Something went wrong with that request. Please try again.