diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-07-14 20:33:41 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-11-10 09:50:26 +0530 |
commit | 5f5a1447bef24ec216c8f21e8a0b6dd6623168b8 (patch) | |
tree | 548b4023d64b7af139da28060f84572b9891d894 /lib/arel/crud.rb | |
parent | 4cbc19075bd2bdf77b591a362db2bd4f72722754 (diff) | |
download | rails-5f5a1447bef24ec216c8f21e8a0b6dd6623168b8.tar.gz rails-5f5a1447bef24ec216c8f21e8a0b6dd6623168b8.tar.bz2 rails-5f5a1447bef24ec216c8f21e8a0b6dd6623168b8.zip |
Remove deprecated calls to `update` with preference to using `compile_update` and then calling `to_sql` on the resulting object to execute the SQL
Diffstat (limited to 'lib/arel/crud.rb')
-rw-r--r-- | lib/arel/crud.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/arel/crud.rb b/lib/arel/crud.rb index 98e109d6f9..6b3a776c6f 100644 --- a/lib/arel/crud.rb +++ b/lib/arel/crud.rb @@ -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 |