blob: 5b432cb2b65f851037919221fd022f189d07ac8f (
plain) (
tree)
|
|
module Arel
###
# FIXME hopefully we can remove this
module Crud
# FIXME: this method should go away
def update values
um = UpdateManager.new @engine
um.table values.first.first.relation
um.set values
um.wheres = @ctx.wheres
@engine.connection.execute um.to_sql
end
# FIXME: this method should go away
def insert values
im = InsertManager.new @engine
im.insert values
@engine.connection.execute im.to_sql
end
end
end
|