module ActiveSupport::Deprecation::Disallowed
def explicitly_allowed?(message)
def explicitly_allowed?(message) allowances = @explicitly_allowed_warnings.value return false unless allowances return true if allowances == :all allowances = [allowances] unless allowances.kind_of?(Array) allowances.any? do |rule| case rule when String, Symbol message.include?(rule.to_s) when Regexp rule.match?(message) end end end