Skip to content

Commit 12c0bae

Browse files
committed
edit
1 parent 6b6c982 commit 12c0bae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/support/helpers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# See http://stackoverflow.com/a/22388177/1268016
22
def count_queries(&block)
33
count = 0
4-
counter_fn = ->(name, started, finished, unique_id, payload) do
4+
counter_fn = lambda do |_name, _started, _finished, _unique_id, payload|
55
count += 1 unless %w[CACHE SCHEMA].include? payload[:name]
66
end
7-
ActiveSupport::Notifications.subscribed(counter_fn, 'sql.active_record', &block)
7+
ActiveSupport::Notifications.subscribed(counter_fn, "sql.active_record", &block)
88
count
99
end

0 commit comments

Comments
 (0)