1 2 3 4 5 6 7 8 9 10 11 12 13 14
module Arel class Externalization < Compound include Recursion::BaseCase def table_sql(formatter = Sql::TableReference.new(relation)) formatter.select relation.select_sql, self end # REMOVEME def name relation.name + '_external' end end end