diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-04 10:06:31 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-04 10:06:31 +0100 |
commit | a92745b8dbd4aefb33831776747ce124f327c6d0 (patch) | |
tree | 3e34e9d8c6c40c0d20578e51398788015928b974 | |
parent | 2ff3c8c99b2de6ce379ecd91cae75bef949f0612 (diff) | |
download | zorglub-a92745b8dbd4aefb33831776747ce124f327c6d0.zip zorglub-a92745b8dbd4aefb33831776747ce124f327c6d0.tar.gz |
Node: fix Node#self.r when no arguments
-rw-r--r-- | lib/zorglub/node.rb | 2 |
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 |