* [PATCH] config: more descriptive variable name
@ 2017-04-03 19:56 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2017-04-03 19:56 UTC (permalink / raw)
To: yahns-public
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-03 19:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-03 19:56 [PATCH] config: more descriptive variable name Eric Wong
Code repositories for project(s) associated with this public inbox
http://yhbt.net/yahns.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).