Sha256: 6a225cde423e9ba0e09db3d113f6daa113de4ad4da0316c3b72c958aa112985c
Contents?: true
Size: 400 Bytes
Versions: 15
Compression:
Stored size: 400 Bytes
Contents
module Arel class DeleteManager < Arel::TreeManager def initialize super @ast = Nodes::DeleteStatement.new @ctx = @ast end def from relation @ast.relation = relation self end def take limit @ast.limit = Nodes::Limit.new(Nodes.build_quoted(limit)) if limit self end def wheres= list @ast.wheres = list end end end
Version data entries
15 entries across 15 versions & 4 rubygems