method

warn

rails latest stable - Class: ActiveSupport::Deprecation::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)"