aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/equality.rb
blob: d778380054c6ade1354764dccc072d307520c809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Arel
  module Nodes
    class Equality
      attr_accessor :left, :right

      def initialize left, right
        @left  = left
        @right = right
      end

      def to_sql
        viz = Visitors::ToSql.new left.relation.engine
        viz.accept self
      end
    end
  end
end