lib/rconf/language.rb in rconf-0.7.10 vs lib/rconf/language.rb in rconf-0.7.11
- old
+ new
@@ -75,10 +75,10 @@
# true:: Always return true
def method_missing(meth, *args, &blk)
if blk
klass = ConfiguratorRegistry[meth]
if klass
- configurator = klass.new(*args)
+ configurator = klass.new(@configurators.size)
configurator.instance_eval(&blk)
error = configurator.validate
@validation_errors << error if error
@configurators << configurator
else