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

21 lines
427 B
Ruby
Raw Normal View History

2010-08-12 19:19:54 -04:00
module Arel
module Nodes
2010-08-13 00:21:20 -04:00
class SelectCore
2010-08-12 19:19:54 -04:00
attr_reader :froms, :projections, :wheres
def initialize
@froms = []
@projections = []
@wheres = []
end
2010-08-19 01:30:36 -04:00
def initialize_copy other
super
@froms = @froms.map { |o| o.clone }
@projections = @projections.map { |o| o.clone }
@wheres = @wheres.map { |o| o.clone }
end
2010-08-12 19:19:54 -04:00
end
end
end