build_select(arel, selects) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/query_methods.rb, line 1011
    def build_select(arel, selects)
      if !selects.empty?
        expanded_select = selects.map do |field|
          columns_hash.key?(field.to_s) ? arel_table[field] : field
        end
        arel.project(*expanded_select)
      else
        arel.project(@klass.arel_table[Arel.star])
      end
    end
Register or log in to add new notes.