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

21 lines
372 B
Ruby
Raw Normal View History

2010-08-13 00:21:20 -04:00
module Arel
module Nodes
class SelectStatement
attr_reader :cores
2010-09-08 20:32:44 -04:00
attr_accessor :limit, :orders, :lock
2010-08-13 00:21:20 -04:00
def initialize cores = [SelectCore.new]
2010-08-22 21:13:39 -04:00
@cores = cores
@orders = []
@limit = nil
2010-09-08 20:32:44 -04:00
@lock = nil
2010-08-13 00:21:20 -04:00
end
2010-08-16 23:59:18 -04:00
def initialize_copy other
super
@cores = @cores.clone
2010-08-16 23:59:18 -04:00
end
2010-08-13 00:21:20 -04:00
end
end
end