This commit is contained in:
Benoit Daloze 2021-11-29 15:50:26 +01:00
parent f8ead3a72f
commit e6d93a27af
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ if Object.const_defined?(:Warning) and Warning.respond_to?(:[]=)
end
if Object.const_defined?(:Warning) and Warning.respond_to?(:warn)
def Warning.warn(message)
def Warning.warn(message, category: nil)
# Suppress any warning inside the method to prevent recursion
verbose = $VERBOSE
$VERBOSE = nil