提交 593deb7d 编写于 作者: J Justin Collins

Add append_before_action and prepend_before_action

上级 6bc992aa
......@@ -116,9 +116,9 @@ class Brakeman::ControllerProcessor < Brakeman::BaseProcessor
case method
when :include
@controller[:includes] << class_name(first_arg) if @controller
when :before_filter, :append_before_filter, :before_action
when :before_filter, :append_before_filter, :before_action, :append_before_action
@controller[:options][:before_filters] << exp.args
when :prepend_before_filter
when :prepend_before_filter, :prepend_before_action
@controller[:options][:before_filters].unshift exp.args
when :layout
if string? last_arg
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册