diff options
author | Eric Wong <e@80x24.org> | 2017-04-03 19:51:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-04-03 19:56:03 +0000 |
commit | bae99e0b853b03e8b597d66c07c3b27e1575524a (patch) | |
tree | 0d94c9884788fb24265e649006ef785bd068c8a9 /lib/yahns/config.rb | |
parent | 1d34b4b93d357811429429ce217345d587462c17 (diff) | |
download | yahns-bae99e0b853b03e8b597d66c07c3b27e1575524a.tar.gz |
That object is not a Rack app, so lets avoid confusing ourselves.
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r-- | lib/yahns/config.rb | 4 |
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) |