diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-03 14:34:49 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-03 14:34:49 +0200 |
commit | 4c727eb185b27c6ef5c1c2a2283d7a8adf21a06b (patch) | |
tree | d8f48b9eaaac8125c0b092f92fc871de33080bc6 | |
parent | ad384e5e285deac173913cd7ce22a39139a52624 (diff) | |
download | zorglub-4c727eb185b27c6ef5c1c2a2283d7a8adf21a06b.zip zorglub-4c727eb185b27c6ef5c1c2a2283d7a8adf21a06b.tar.gz |
fix Node.call usage of Node.r
-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 73811ea..4b75286 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -30,7 +30,7 @@ module Zorglub def call env meth, *args = env['PATH_INFO'][1..-1].split '/' meth||= 'index' - action = {:engine=>engine,:layout=>layout,:view=>File.join(r,meth),:method=>meth,:args=>args} + action = {:engine=>engine,:layout=>layout,:view=>r(meth),:method=>meth,:args=>args} node = self.new Rack::Request.new(env), Rack::Response.new, action return error_404 node if not node.respond_to? meth node.realize |