Skip to content

Commit 1b923b1

Browse files
committed
Resolve issue with Rails 6 compatibility
1 parent 0120ae6 commit 1b923b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/stimulus_reflex/instrumentation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def self.track(reflex)
88
events = []
99

1010
time = Benchmark.realtime do
11-
ActiveSupport::Notifications.subscribed(lambda { |event| events << event }, /^sql.active_record|^render/) do
11+
ActiveSupport::Notifications.subscribed(Proc.new{ |event| events << event }, /^sql.active_record|^render/) do
1212
yield
1313
end
1414
end

0 commit comments

Comments
 (0)