instance method
debug_mode?
Ruby on Rails 8.1.2
Since v8.1.2Signature
debug_mode?()
Check if debug mode is currently enabled. Debug mode is enabled on the reporter via with_debug, and in local environments.
Source
# File activesupport/lib/active_support/event_reporter.rb, line 420
def debug_mode?
@debug_mode || Fiber[:event_reporter_debug_mode]
end
Defined in activesupport/lib/active_support/event_reporter.rb line 420
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EventReporter