1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/arel/nodes/select_core.rb
2010-08-19 01:38:09 -04:00

20 lines
427 B
Ruby

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