Browse files

mongoid instrument only support mongoid 2.x

  • Loading branch information...
1 parent 7d6f456 commit 53763f833b14bcc06bcb3ccbcba20999401d80bf @arthurnn arthurnn committed Apr 1, 2013
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

0 comments on commit 53763f8

Please sign in to comment.