That object is not a Rack app, so lets avoid confusing ourselves. --- lib/yahns/config.rb | 4 ++-- 1 file 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 @@ def app(type, *args, &block) "#{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) -- EW -- unsubscribe: yahns-public+unsubscr...@yhbt.net archive: https://yhbt.net/yahns-public/