From bae99e0b853b03e8b597d66c07c3b27e1575524a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 3 Apr 2017 19:51:01 +0000 Subject: config: more descriptive variable name That object is not a Rack app, so lets avoid confusing ourselves. --- lib/yahns/config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/yahns/config.rb') 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) -- cgit v1.2.3-24-ge0c7