提交 808f414e 编写于 作者: J Justin Collins

Clone mixin methods before processing

in case they are mixed into multiple controllers
上级 5c67671c
......@@ -48,7 +48,7 @@ class Brakeman::ControllerAliasProcessor < Brakeman::AliasProcessor
#Need to process the method like it was in a controller in order
#to get the renders set
processor = Brakeman::ControllerProcessor.new(@app_tree, @tracker)
method = mixin[:public][name]
method = mixin[:public][name].deep_clone
if node_type? method, :methdef
method = processor.process_defn method
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册