instance method
with_debug_event_reporting
Ruby on Rails 8.1.2
Since v8.1.2Signature
with_debug_event_reporting(&block)
Allows debug events to be reported to Rails.event for the duration of a given block.
with_debug_event_reporting do service_that_reports_debug_events.perform end
Parameters
-
blockblock
Source
# File activesupport/lib/active_support/testing/event_reporter_assertions.rb, line 222
def with_debug_event_reporting(&block)
ActiveSupport.event_reporter.with_debug(&block)
end
Defined in activesupport/lib/active_support/testing/event_reporter_assertions.rb line 222
· View on GitHub
· Improve this page
· Find usages on GitHub