summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/zorglub/node.rb2
1 files changed, 1 insertions, 1 deletions
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