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
|
klass = klass.to_s.classify.constantize
|
||||||
|
|
||||||
hidden_method_name = :"#{attr}_without_enable_check"
|
hidden_method_name = :"#{attr}_without_enable_check"
|
||||||
klass.send(:define_method, hidden_method_name) do |*args|
|
klass.send(:define_method, hidden_method_name, &block)
|
||||||
block.call(*args)
|
|
||||||
end
|
|
||||||
|
|
||||||
plugin = self
|
plugin = self
|
||||||
klass.send(:define_method, attr) do |*args|
|
klass.send(:define_method, attr) do |*args|
|
||||||
|
|
Loading…
Reference in New Issue