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

Add Tracker#reset_model

上级 f0489258
......@@ -176,6 +176,20 @@ class Brakeman::Tracker
@rest = nil
end
#Clear information related to model
def reset_model path
model_name = nil
@models.each do |name, model|
if model[:file] == path
model_name = name
break
end
end
@models.delete model_name
end
#Clear information about routes
def reset_routes
@routes = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册