DEV: correct some Ruby 2.7 deprecations

There are a few left, especially in gems but this makes some progress
This commit is contained in:
Sam Saffron
2020-07-16 17:43:20 +10:00
parent af87911178
commit 906a84d66f
3 changed files with 8 additions and 3 deletions

View File

@ -248,7 +248,7 @@ class Plugin::Instance
hidden_method_name = :"#{method_name}_without_enable_check"
klass.public_send(:define_method, hidden_method_name, &block)
klass.public_send(callback, options) do |*args|
klass.public_send(callback, **options) do |*args|
public_send(hidden_method_name, *args) if plugin.enabled?
end