1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module Arel module Nodes class SelectStatement attr_reader :cores attr_accessor :limit def initialize cores = [SelectCore.new] @cores = cores @limit = nil end def initialize_copy other super @cores = @cores.map { |o| o.clone } end end end end