提交 77c83e37 编写于 作者: J Justin Collins

Fix --separate-models commandline option

fixes #585
上级 36cdce51
......@@ -204,8 +204,8 @@ module Brakeman::Options
options[:output_files].push(file)
end
opts.on "--[no]-separate-models", "Warn on each model without attr_accessible (Default)" do |combine|
options[:collapse_mass_assignment] = combine
opts.on "--[no-]separate-models", "Warn on each model without attr_accessible (Default)" do |separate|
options[:collapse_mass_assignment] = !separate
end
opts.on "--summary", "Only output summary of warnings" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册