yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
* [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
 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)

^ permalink raw reply	[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

yahns Ruby server user/dev discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhbt.net/yahns-public
	git clone --mirror http://ou63pmih66umazou.onion/yahns-public

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 yahns-public yahns-public/ https://yhbt.net/yahns-public \
		yahns-public@yhbt.net yahns-public@rubyforge.org
	public-inbox-index yahns-public

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:


AGPL code for this site: git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/public-inbox.git