1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove deprecated calls to update with preference to using compile_update and then calling to_sql on the resulting object to execute the SQL

This commit is contained in:
Vipul A M 2013-07-14 20:33:41 +05:30
parent 4cbc19075b
commit 5f5a1447be

View file

@ -18,19 +18,6 @@ module Arel
um
end
# FIXME: this method should go away
def update values
if $VERBOSE
warn <<-eowarn
update (#{caller.first}) is deprecated and will be removed in Arel 4.0.0. Please
switch to `compile_update`
eowarn
end
um = compile_update values
@engine.connection.update um.to_sql, 'AREL'
end
def compile_insert values
im = create_insert
im.insert values