Method: ActiveSupport::RaiseWarnings#warn
- Defined in:
- activesupport/lib/active_support/testing/strict_warnings.rb
#warn(message) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'activesupport/lib/active_support/testing/strict_warnings.rb', line 29 def warn(, ...) return if SUPPRESSED_WARNINGS.match?() super return unless .include?(PROJECT_ROOT) return if ALLOWED_WARNINGS.match?() return unless ENV["RAILS_STRICT_WARNINGS"] || ENV["BUILDKITE"] raise WarningError.new() end |