FIX: Missed incrementing `idx`

This commit is contained in:
Robin Ward 2015-08-21 11:39:40 -04:00
parent 37f2d8c73c
commit 2b72bd3592
1 changed files with 1 additions and 0 deletions

View File

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