aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/recursion.rb
blob: 90976c702bab7b9a8ee9e73275091d4eb313d74c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Arel
  module Recursion
    module BaseCase
      def table
        self
      end

      def relation_for(attribute)
        self
      end

      def table_sql(formatter = Sql::TableReference.new(self))
        formatter.table self
      end
    end
  end
end