ActiveSupport::Deprecation::Behavior
module ActiveSupport::Deprecation::Behavior
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
-
Raise
ActiveSupport::DeprecationException
. -
stderr
-
Log all deprecation warnings to +$stderr+.
-
log
-
Log all deprecation warnings to
Rails.logger
. -
notify
-
Use
ActiveSupport::Notifications
to notifydeprecation.rails
. -
silence
-
Do nothing.
Setting behaviors only affects deprec