Updating sample code on ActiveRecord#before_destroy callback [ci skip]

It was executing a delete_all method with wrong parameter
上级 f98901c2
......@@ -95,7 +95,7 @@ module ActiveRecord
#
# private
# def delete_parents
# self.class.delete_all "parent_id = #{id}"
# self.class.where(parent_id: id).delete_all
# end
# end
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册