method

column_indexes

rails latest stable - Class: ActiveRecord::Result

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

column_indexes()
public

No documentation available.

# File activerecord/lib/active_record/result.rb, line 148
    def column_indexes # :nodoc:
      @column_indexes ||= begin
        index = 0
        hash = {}
        length  = columns.length
        while index < length
          hash[columns[index]] = index
          index += 1
        end
        hash
      end
    end