aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/delete_statement.rb
blob: b65177af056f433093956711d2019a79ccd7bf67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Arel
  module Nodes
    class DeleteStatement
      attr_accessor :relation, :wheres

      def initialize
        @from   = nil
        @wheres = []
      end

      def initialize_copy other
        super
        @wheres = @wheres.map { |o| o.clone }        
      end
    end
  end
end