Skip to content

Commit

Permalink
Resolve issue with Rails 6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Yorkley committed Mar 9, 2024
1 parent 0120ae6 commit 1b923b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stimulus_reflex/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.track(reflex)
events = []

time = Benchmark.realtime do
ActiveSupport::Notifications.subscribed(lambda { |event| events << event }, /^sql.active_record|^render/) do
ActiveSupport::Notifications.subscribed(Proc.new{ |event| events << event }, /^sql.active_record|^render/) do
yield
end
end
Expand Down

0 comments on commit 1b923b1

Please sign in to comment.