提交 5fbd6507 编写于 作者: J Justin Collins

Fix handling of scope calls with single argument

上级 83683aa7
......@@ -72,6 +72,8 @@ class Brakeman::CheckSQL < Brakeman::BaseCheck
model[:options][:scope].each do |args|
second_arg = args[2]
next unless sexp? second_arg
if second_arg.node_type == :iter and node_type? second_arg.block, :block, :call
process_scope_with_block name, args
elsif second_arg.node_type == :call
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册