1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module Arel module Recursion module BaseCase # XXX def table self end def table_sql(formatter = Sql::TableReference.new(self)) formatter.table self end def relation_for(attribute) self[attribute] && self end end end end