From 889cdf7749217c0425e2984cf13d7791ad79cb48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 11 Sep 2011 00:45:47 +0200 Subject: Node@r accepts arguments --- lib/zorglub/node.rb | 4 ++-- 1 file 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 -- cgit v1.1-2-g2b99