提交 2a9c4e87 编写于 作者: J Justin Collins

Check for mass assign in AssociationCollection#build

closes #44
上级 cf174eb2
......@@ -30,7 +30,8 @@ class Brakeman::CheckMassAssignment < Brakeman::BaseCheck
:update_attributes,
:update_attributes!,
:create,
:create!]
:create!,
:build]
Brakeman.debug "Processing possible mass assignment calls"
calls.each do |result|
......
......@@ -15,7 +15,7 @@ class Rails3Tests < Test::Unit::TestCase
:controller => 1,
:model => 5,
:template => 18,
:warning => 21
:warning => 22
}
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册