Class: ActiveRecord::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/mysql2_downcase_adapter.rb

Instance Method Summary collapse

Constructor Details

#initialize(columns, rows) ⇒ Result

Это выполняется через ActiveRecord::Result.new в mysql2_adapter при выполнении запроса



28
29
30
31
32
# File 'lib/active_record/connection_adapters/mysql2_downcase_adapter.rb', line 28

def initialize(columns, rows)
  @columns   = columns.map { |c| c.downcase }
  @rows      = rows
  @hash_rows = nil
end