提交 72f50854 编写于 作者: A Aaron Patterson

rm dead code

上级 fd16cb3f
......@@ -16,7 +16,7 @@ class ForbiddenAttributesError < StandardError
module ForbiddenAttributesProtection # :nodoc:
protected
def sanitize_for_mass_assignment(attributes, options = {})
def sanitize_for_mass_assignment(attributes)
if attributes.respond_to?(:permitted?) && !attributes.permitted?
raise ActiveModel::ForbiddenAttributesError
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册