summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-09-11 00:45:47 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-09-11 01:03:24 +0200
commit889cdf7749217c0425e2984cf13d7791ad79cb48 (patch)
treebc5ff4a3180fe965d609e6aa3ea29a5bd7565d2e
parent7ddf44650cd23c83ad83e975d69bc4542a59ee1e (diff)
downloadzorglub-889cdf7749217c0425e2984cf13d7791ad79cb48.zip
zorglub-889cdf7749217c0425e2984cf13d7791ad79cb48.tar.gz
Node@r accepts arguments
-rw-r--r--lib/zorglub/node.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 45f7357..357b97f 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -91,8 +91,8 @@ module Zorglub
@session ||= Session.new @request
end
#
- def r
- File.join map, @action[:method]
+ def r *args
+ File.join map, (args.empty? ? @action[:method] : args.map { |x| x.to_s } )
end
#
def html