method

warn

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Reporting
warn(message = nil, callstack = nil) public

Outputs a deprecation warning to the output configured by ActiveSupport::Deprecation#behavior.

ActiveSupport::Deprecation.new.warn('something broke!')
# => "DEPRECATION WARNING: something broke! (called from your_code.rb:1)"
Show source
Register or log in to add new notes.