aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/recursion.rb
blob: 1333d7ff57ca941e9d2d2c123e779d65234b73d3 (plain) (blame)
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