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/update_statement.rb

22 lines
402 B
Ruby
Raw Normal View History

2010-08-14 21:29:32 -04:00
module Arel
module Nodes
class UpdateStatement
2010-09-21 12:20:14 -04:00
attr_accessor :relation, :wheres, :values, :orders, :limit
2010-08-14 21:29:32 -04:00
def initialize
@relation = nil
@wheres = []
2010-08-14 22:14:49 -04:00
@values = []
2010-09-21 12:20:14 -04:00
@orders = []
@limit = nil
2010-08-14 21:29:32 -04:00
end
2010-08-16 23:59:18 -04:00
def initialize_copy other
super
@wheres = @wheres.clone
@values = @values.clone
2010-08-16 23:59:18 -04:00
end
2010-08-14 21:29:32 -04:00
end
end
end