From 4cbc19075bd2bdf77b591a362db2bd4f72722754 Mon Sep 17 00:00:00 2001
From: Vipul A M <vipulnsward@gmail.com>
Date: Sun, 14 Jul 2013 20:32:34 +0530
Subject: Remove deprecated calls to `insert` with preference to using
 `compile_insert` and then calling `to_sql` on the resulting object to execute
 the SQL

---
 lib/arel/crud.rb | 11 -----------
 1 file changed, 11 deletions(-)

(limited to 'lib')

diff --git a/lib/arel/crud.rb b/lib/arel/crud.rb
index cc50a820e4..98e109d6f9 100644
--- a/lib/arel/crud.rb
+++ b/lib/arel/crud.rb
@@ -41,17 +41,6 @@ switch to `compile_update`
       InsertManager.new @engine
     end
 
-    # FIXME: this method should go away
-    def insert values
-      if $VERBOSE
-        warn <<-eowarn
-insert (#{caller.first}) is deprecated and will be removed in Arel 4.0.0. Please
-switch to `compile_insert`
-        eowarn
-      end
-      @engine.connection.insert compile_insert(values).to_sql
-    end
-
     def compile_delete
       dm = DeleteManager.new @engine
       dm.wheres = @ctx.wheres
-- 
cgit v1.2.3