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:
parent
4cbc19075b
commit
5f5a1447be
1 changed files with 0 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue