提交 94294bc8 编写于 作者: J Justin Collins

Add resources to resource even if given hash

上级 b4bb2125
......@@ -164,6 +164,7 @@ class Brakeman::Rails3RoutesProcessor < Brakeman::BaseProcessor
if exp[3] and exp[3][2] and exp[3][2][0] == :hash
self.current_controller = exp[3][1][1]
#handle hash
add_resources_routes
elsif exp[3][1..-1].all? { |s| symbol? s }
exp[3][1..-1].each do |s|
self.current_controller = s[1]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册