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

Don't error on hash opts for attr_accessible

上级 fa57982a
......@@ -81,8 +81,12 @@ class Brakeman::ModelProcessor < Brakeman::BaseProcessor
when :attr_accessible
@model[:attr_accessible] ||= []
args = args.map do |e|
e.value
end
if node_type? e, :lit
e.value
else
nil
end
end.compact
@model[:attr_accessible].concat args
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册