mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 21:04:48 +00:00
FIX: Missed incrementing idx
This commit is contained in:
parent
37f2d8c73c
commit
2b72bd3592
@ -95,6 +95,7 @@ class Plugin::Instance
|
||||
|
||||
# generate a unique method name
|
||||
method_name = "#{plugin.name}_#{klass.name}_#{callback}#{@idx}".underscore
|
||||
@idx += 1
|
||||
hidden_method_name = :"#{method_name}_without_enable_check"
|
||||
klass.send(:define_method, hidden_method_name, &block)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user