method

warn

rails latest stable - Class: ActiveSupport::Deprecation

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

warn(message = nil, callstack = caller)
public

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

ActiveSupport::Deprecation.warn("something broke!")
# => "DEPRECATION WARNING: something broke! (called from your_code.rb:1)"