summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-04 10:06:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-04 10:06:31 +0100
commita92745b8dbd4aefb33831776747ce124f327c6d0 (patch)
tree3e34e9d8c6c40c0d20578e51398788015928b974 /lib
parent2ff3c8c99b2de6ce379ecd91cae75bef949f0612 (diff)
downloadzorglub-a92745b8dbd4aefb33831776747ce124f327c6d0.zip
zorglub-a92745b8dbd4aefb33831776747ce124f327c6d0.tar.gz
Node: fix Node#self.r when no arguments
Diffstat (limited to 'lib')
-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