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

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

      def initialize_copy other
        super
        @froms       = @froms.clone
        @projections = @projections.clone
        @wheres      = @wheres.clone
        @group       = @groups.clone
      end
    end
  end
end