aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/select_core.rb
blob: 7ebdab315dafeeb3f502171084486bc9a701292a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Arel
  module Nodes
    class SelectCore
      attr_reader :froms, :projections, :wheres

      def initialize
        @froms       = []
        @projections = []
        @wheres      = []
      end

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