Sha256: 1d495277a0aa569997566cacb0f82279136ab7a533aa75824006523f566b44aa
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
module Arel class Externalization < Compound include Recursion::BaseCase def == other super || Externalization === other && relation == other.relation end def wheres [] end def attributes @attributes ||= Header.new(relation.attributes.map { |a| a.to_attribute(self) }) end def table_sql(formatter = Sql::TableReference.new(relation)) formatter.select relation.compiler.select_sql, self end # REMOVEME def name relation.name + '_external' end end end
Version data entries
3 entries across 3 versions & 1 rubygems