extend/kernel: fix odisabled kwargs handling

This commit is contained in:
Bo Anderson 2023-10-28 17:48:31 +01:00
parent 13ca5c3984
commit 7187b8b5d6
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -155,10 +155,10 @@ module Kernel
end
end
def odisabled(method, replacement = nil, options = {})
def odisabled(method, replacement = nil, **options)
options = { disable: true, caller: caller }.merge(options)
# This odeprecated should stick around indefinitely.
odeprecated(method, replacement, options)
odeprecated(method, replacement, **options)
end
def pretty_installed(formula)