aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/delete_statement.rb
blob: 593ce9bddf618c0046db7c9906b0cde85434ce64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true
module Arel
  module Nodes
    class DeleteStatement < Arel::Nodes::Binary
      attr_accessor :limit

      alias :relation :left
      alias :relation= :left=
      alias :wheres :right
      alias :wheres= :right=

      def initialize relation = nil, wheres = []
        super
      end

      def initialize_copy other
        super
        @right = @right.clone
      end
    end
  end
end