mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 08:07:17 +08:00
FIX: compatibility issue with akismet plugin
This commit is contained in:
@ -69,9 +69,7 @@ class Plugin::Instance
|
||||
klass = klass.to_s.classify.constantize
|
||||
|
||||
hidden_method_name = :"#{attr}_without_enable_check"
|
||||
klass.send(:define_method, hidden_method_name) do |*args|
|
||||
block.call(*args)
|
||||
end
|
||||
klass.send(:define_method, hidden_method_name, &block)
|
||||
|
||||
plugin = self
|
||||
klass.send(:define_method, attr) do |*args|
|
||||
|
Reference in New Issue
Block a user