Permalink
Browse files

active record logger takes an optional binds arguments

  • Loading branch information...
1 parent c265ab0 commit 7af0982d4a3898be5a156aaa12fad027fb4330c2 @dmathieu dmathieu committed Jul 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/new_relic/agent/instrumentation/rails3/active_record_instrumentation.rb
@@ -13,9 +13,9 @@ def self.included(instrumented_class)
end
end
- def log_with_newrelic_instrumentation(sql, name, &block)
+ def log_with_newrelic_instrumentation(sql, name, binds = [], &block)
- return log_without_newrelic_instrumentation(sql, name, &block) unless NewRelic::Agent.is_execution_traced?
+ return log_without_newrelic_instrumentation(sql, name, binds, &block) unless NewRelic::Agent.is_execution_traced?
# Capture db config if we are going to try to get the explain plans
if (defined?(ActiveRecord::ConnectionAdapters::MysqlAdapter) && self.is_a?(ActiveRecord::ConnectionAdapters::MysqlAdapter)) ||

0 comments on commit 7af0982

Please sign in to comment.