mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user