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-09-08 15:29:22 -07:00

25 lines
571 B
Ruby

module Arel
module Nodes
class SelectCore
attr_reader :froms, :projections, :wheres, :groups
attr_accessor :having
def initialize
@froms = []
@projections = []
@wheres = []
@groups = []
@having = nil
end
def initialize_copy other
super
@froms = @froms.clone
@projections = @projections.clone
@wheres = @wheres.clone
@group = @groups.clone
@having = @having.clone if @having
end
end
end
end