FIX: compatibility issue with akismet plugin

This commit is contained in:
Régis Hanol 2015-04-23 20:02:16 +02:00
parent 7085c7db12
commit 8bda53a8cd
1 changed files with 1 additions and 3 deletions

View File

@ -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|