aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/join_source.rb
blob: abf09446236f65f24cf0d46e7cc5543be20a50cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Arel # :nodoc: all
  module Nodes
    ###
    # Class that represents a join source
    #
    #   http://www.sqlite.org/syntaxdiagrams.html#join-source

    class JoinSource < Arel::Nodes::Binary
      def initialize(single_source, joinop = [])
        super
      end

      def empty?
        !left && right.empty?
      end
    end
  end
end