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

26 lines
573 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
attr_accessor :froms, :projections, :wheres, :groups
2010-09-08 18:29:22 -04:00
attr_accessor :having
2010-08-12 19:19:54 -04:00
def initialize
@froms = []
@projections = []
@wheres = []
2010-09-07 18:47:38 -04:00
@groups = []
2010-09-08 18:29:22 -04:00
@having = nil
2010-08-12 19:19:54 -04:00
end
2010-08-19 01:30:36 -04:00
def initialize_copy other
super
2010-09-07 18:47:38 -04:00
@froms = @froms.clone
@projections = @projections.clone
2010-09-07 18:47:38 -04:00
@wheres = @wheres.clone
@group = @groups.clone
2010-09-08 18:29:22 -04:00
@having = @having.clone if @having
2010-08-19 01:30:36 -04:00
end
2010-08-12 19:19:54 -04:00
end
end
end