提交 438c0188 编写于 作者: S Santiago Pastorino

nil check unneeded ht. exviva

上级 a3bd62e1
......@@ -236,7 +236,7 @@ def destroy(*records)
# Removes all records from this association. Returns +self+ so method calls may be chained.
def clear
unless length.zero? # forces load_target if it hasn't happened already
if @reflection.options[:dependent] && @reflection.options[:dependent] == :destroy
if @reflection.options[:dependent] == :destroy
destroy_all
else
delete_all
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册