提交 c6d0962c 编写于 作者: J Justin Collins

Merge branch 'fix_rescanning_when_only_controller_changes'

......@@ -117,7 +117,7 @@ class Brakeman::Rescanner < Brakeman::Scanner
if controller[:file] == path
tracker.templates.keys.each do |template_name|
if template_name.to_s.match /(.+)\.#{name}#/
tracker.templates.delete template_name
tracker.reset_template template_name
end
end
......@@ -222,7 +222,7 @@ class Brakeman::Rescanner < Brakeman::Scanner
#Remove templates rendered from this controller
tracker.templates.keys.each do |template_name|
if template_name.to_s.match template_matcher
tracker.templates.delete template_name
tracker.reset_template template_name
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册