FIX: compatibility issue with akismet plugin
This commit is contained in:
parent
7085c7db12
commit
8bda53a8cd
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue