method

warn

rails latest stable - Class: RailsStrictWarnings

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

warn(message, ...)
public

No documentation available.

# File tools/strict_warnings.rb, line 25
  def warn(message, ...)
    return if SUPPRESSED_WARNINGS.match?(message)

    super

    return unless message.include?(PROJECT_ROOT)
    return if ALLOWED_WARNINGS.match?(message)
    return unless ENV["RAILS_STRICT_WARNINGS"] || ENV["BUILDKITE"]

    raise WarningError.new(message)
  end