From a92745b8dbd4aefb33831776747ce124f327c6d0 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Wed, 4 Jan 2012 10:06:31 +0100 Subject: Node: fix Node#self.r when no arguments --- lib/zorglub/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 5eb2b85..63366e8 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -49,7 +49,7 @@ module Zorglub # def r *args @r ||= @app.to self - File.join @r, args.map { |x| x.to_s } + (args.empty? ? @r : File.join( @r, args.map { |x| x.to_s } ) ) end # def call env -- cgit v1.2.3