module DeprecationToolkit::WarningPatch

Public Instance Methods

warn(str) click to toggle source
Calls superclass method
# File lib/deprecation_toolkit/warning.rb, line 72
def warn(str)
  str = DeprecationToolkit::Warning.handle_multipart(str)
  return unless str

  if DeprecationToolkit::Warning.deprecation_triggered?(str)
    ActiveSupport::Deprecation.warn(str)
  else
    super
  end
end