提交 c5f3811a 编写于 作者: P Pratik Naik

Model.delete should just use scoped.delete

上级 184ef28f
......@@ -814,7 +814,7 @@ def update(id, attributes)
# # Delete multiple rows
# Todo.delete([2,3,4])
def delete(id_or_array)
active_relation.where(construct_conditions(nil, current_scoped_methods)).delete(id_or_array)
scoped.delete(id_or_array)
end
# Destroy an object (or multiple objects) that has the given id, the object is instantiated first,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册