lib/new_relic/agent/instrumentation/authlogic.rb in newrelic_rpm-3.6.6.147 vs lib/new_relic/agent/instrumentation/authlogic.rb in newrelic_rpm-3.6.7.152

- old
+ new

@@ -4,20 +4,22 @@ DependencyDetection.defer do @name = :authlogic depends_on do - defined?(AuthLogic) && - defined?(AuthLogic::Session) && - defined?(AuthLogic::Session::Base) + defined?(Authlogic) && + defined?(Authlogic::Session) && + defined?(Authlogic::Session::Base) end executes do - ::NewRelic::Agent.logger.info 'Installing AuthLogic instrumentation' + ::NewRelic::Agent.logger.info 'Installing Authlogic instrumentation' end executes do - AuthLogic::Session::Base.class_eval do - add_method_tracer :find, 'Custom/Authlogic/find' + Authlogic::Session::Base.class_eval do + class << self + add_method_tracer :find, 'Custom/Authlogic/find' + end end end end