提交 93f335b6 编写于 作者: A Aaron Patterson

call to present? is not necessary

上级 3e871eee
......@@ -166,8 +166,7 @@ def perform_calculation(operation, column_name, options = {})
if operation == "count"
column_name ||= (select_for_count || :all)
joins = arel.joins(arel)
if joins.present? && joins =~ /LEFT OUTER/i
if arel.joins(arel) =~ /LEFT OUTER/i
distinct = true
column_name = @klass.primary_key if column_name == :all
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册