method

select_for_count

select_for_count()
private

No documentation available.

# File activerecord/lib/active_record/relation/calculations.rb, line 658
      def select_for_count
        if select_values.empty?
          :all
        else
          with_connection do |conn|
            arel_columns(select_values).map { |column| conn.visitor.compile(column) }.join(", ")
          end
        end
      end