123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport::RaiseWarnings

Do not use. This module is for internal use only.
Relationships & Source Files
Defined in: activesupport/lib/active_support/testing/strict_warnings.rb

Constant Summary

Instance Method Summary

Instance Method Details

#warn(message)

[ GitHub ]

  
# File 'activesupport/lib/active_support/testing/strict_warnings.rb', line 24

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["CI"]

  raise message
end