From 386e2c7357d8e15ab52f63c7d79101458561fbb1 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 13 Mar 2019 04:54:47 +0900 Subject: [PATCH] Remove unused `Row` class in `SelectManager` The `Row` class is no longer used since d956772b3c61d97940ebcccd7c83e2397ca0c36c. --- activerecord/lib/arel/select_manager.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/activerecord/lib/arel/select_manager.rb b/activerecord/lib/arel/select_manager.rb index a2b2838a3d..0da52ca91b 100644 --- a/activerecord/lib/arel/select_manager.rb +++ b/activerecord/lib/arel/select_manager.rb @@ -237,18 +237,6 @@ module Arel # :nodoc: all @ctx.source end - class Row < Struct.new(:data) # :nodoc: - def id - data["id"] - end - - def method_missing(name, *args) - name = name.to_s - return data[name] if data.key?(name) - super - end - end - private def collapse(exprs) exprs = exprs.compact