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_statement.rb
2010-12-14 10:22:39 -08:00

23 lines
505 B
Ruby

module Arel
module Nodes
class SelectStatement < Arel::Nodes::Node
attr_reader :cores
attr_accessor :limit, :orders, :lock, :offset
def initialize cores = [SelectCore.new]
#puts caller
@cores = cores
@orders = []
@limit = nil
@lock = nil
@offset = nil
end
def initialize_copy other
super
@cores = @cores.map { |x| x.clone }
@orders = @orders.map { |x| x.clone }
end
end
end
end