From 5f5a1447bef24ec216c8f21e8a0b6dd6623168b8 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Sun, 14 Jul 2013 20:33:41 +0530 Subject: Remove deprecated calls to `update` with preference to using `compile_update` and then calling `to_sql` on the resulting object to execute the SQL --- lib/arel/crud.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib/arel') 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 -- cgit v1.2.3