We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 647b03f commit bb1d257Copy full SHA for bb1d257
lib/patches/db/activerecord.rb
@@ -15,12 +15,12 @@ def self.included(instrumented_class)
15
end
16
17
18
- def log_with_miniprofiler(*args, &block)
19
- return log_without_miniprofiler(*args, &block) unless SqlPatches.should_measure?
+ def log_with_miniprofiler(*args, **kwargs, &block)
+ return log_without_miniprofiler(*args, **kwargs, &block) unless SqlPatches.should_measure?
20
21
sql, name, binds = args
22
start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
23
- rval = log_without_miniprofiler(*args, &block)
+ rval = log_without_miniprofiler(*args, **kwargs, &block)
24
25
# Don't log schema queries if the option is set
26
return rval if Rack::MiniProfiler.config.skip_schema_queries && name =~ (/SCHEMA/)
0 commit comments