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

nil check unneeded ht. exviva

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