提交 380bd146 编写于 作者: J Justin Collins

Skip alias processing of classes inside controller

上级 5bcf247d
......@@ -64,16 +64,9 @@ class Brakeman::ControllerAliasProcessor < Brakeman::AliasProcessor
end
end
#Processes a class which is probably a controller.
#(This method should be retired - only classes should ever be processed
# and @current_module will never be set, leading to inaccurate class names)
#Skip it, must be an inner class
def process_class exp
@current_class = class_name(exp.class_name)
if @current_module
@current_class = ("#@current_module::#@current_class").to_sym
end
process_default exp
exp
end
#Processes a method definition, which may include
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册