module ActiveSupport::Deprecation::Disallowed

def deprecation_disallowed?(message)

def deprecation_disallowed?(message)
  return false if explicitly_allowed?(message)
  return true if disallowed_warnings == :all
  message && disallowed_warnings.any? do |rule|
    case rule
    when String, Symbol
      message.include?(rule.to_s)
    when Regexp
      rule.match?(message)
    end
  end
end