提交 541ecd34 编写于 作者: J Justin Collins

Fix handling of :action in match route

上级 5138df03
......@@ -113,7 +113,12 @@ class Brakeman::Rails3RoutesProcessor < Brakeman::BaseProcessor
elsif symbol? k
case k[1]
when :action
add_route action
if string? v
add_route_from_string v
else
add_route v
end
action_variable = false
when :to
if string? v
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册