instance method with_debug_event_reporting

Ruby on Rails 8.1.2

Since v8.1.2

Signature

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

block block
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

Defined in ActiveSupport::Testing::EventReporterAssertions

Type at least 2 characters to search.

↑↓ navigate · open · esc close