mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: compatibility issue with akismet plugin
This commit is contained in:
parent
7085c7db12
commit
8bda53a8cd
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue