提交 0687b21d 编写于 作者: A Aaron Patterson

removing ternary

上级 1aaa8ede
......@@ -42,7 +42,7 @@ def count_records
# documented side-effect of the method that may avoid an extra SELECT.
@target ||= [] and loaded if count == 0
@reflection.options[:limit] ? [@reflection.options[:limit], count].min : count
[@reflection.options[:limit], count].compact.min
end
def has_cached_counter?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册