aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/tree_manager.rb
blob: 9dd9f27858fa53f810a4a8e7f58691cf2d9d6be2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Arel
  class TreeManager
    # FIXME: Remove this.
    include Arel::Relation

    def initialize engine
      @engine = engine
    end

    def to_sql
      viz = Visitors::ToSql.new @engine
      viz.accept @head
    end
  end
end