From 929f5c6d149ee0b3a94174c764d7e5101366e26b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 7 Jan 2013 21:18:07 +0100 Subject: use regex instead of string, fix cgit colorisation --- lib/zorglub/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index c39c4b9..6619010 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -222,7 +222,7 @@ module Zorglub end # def call env - meth, *args = env['PATH_INFO'].sub(/^\//,'').split '/' + meth, *args = env['PATH_INFO'].sub(/^\//,'').split(/\//) meth||= 'index' puts "=> #{meth}(#{args.join ','})" if app.opt :debug node = self.new env, {:engine=>engine,:layout=>layout,:view=>r(meth),:method=>meth,:args=>args,:static=>static} -- cgit v1.1-2-g2b99