mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
call to present? is not necessary
This commit is contained in:
@@ -166,8 +166,7 @@ module ActiveRecord
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user