about summary refs log tree commit homepage
path: root/lib/yahns/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r--lib/yahns/config.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb
index 98fe170..e545d59 100644
--- a/lib/yahns/config.rb
+++ b/lib/yahns/config.rb
@@ -328,8 +328,8 @@ class Yahns::Config # :nodoc:
         "#{var}: #{file} did not register #{type} in #{self.class}::APP_CLASS"
 
     # apps may have multiple configurator contexts
-    app = @app_instances[klass.instance_key(*args)] = klass.new(*args)
-    ctx = app.config_context
+    app_cfg = @app_instances[klass.instance_key(*args)] = klass.new(*args)
+    ctx = app_cfg.config_context
     if block_given?
       @block = CfgBlock.new(:app, ctx)
       instance_eval(&block)