mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: Missed incrementing idx
This commit is contained in:
parent
37f2d8c73c
commit
2b72bd3592
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue