module
ActiveSupport::Deprecation::Behavior
v8.1.1 -
Show latest stable
Behavior module allows to determine how to display deprecation messages. You can create a custom behavior or set any from the DEFAULT_BEHAVIORS constant. Available behaviors are:
- :raise
- :stderr
-
Log all deprecation warnings to $stderr.
- :log
-
Log all deprecation warnings to Rails.logger.
- :notify
-
Use ActiveSupport::Notifications to notify deprecation.rails.
- :report
-
Use ActiveSupport::ErrorReporter to report deprecations.
- :silence
-
Do nothing. On Rails, set config.active_support.report_deprecations = false to disable all behaviors.
Setting behaviors only affects deprecations that happen after boot time. For more information you can read the documentation of the #behavior= method.
Attributes
| [RW] | debug |
Files
- activesupport/lib/active_support/deprecation/behaviors.rb