aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-07-14 20:32:34 +0530
committerVipul A M <vipulnsward@gmail.com>2013-11-10 09:50:26 +0530
commit4cbc19075bd2bdf77b591a362db2bd4f72722754 (patch)
tree59bfef606638ebb6a406e9c1d82082575f407a43 /lib/arel
parent6aa055f5ab8ad4aee2791d9ba505d8328707ca83 (diff)
downloadrails-4cbc19075bd2bdf77b591a362db2bd4f72722754.tar.gz
rails-4cbc19075bd2bdf77b591a362db2bd4f72722754.tar.bz2
rails-4cbc19075bd2bdf77b591a362db2bd4f72722754.zip
Remove deprecated calls to `insert` with preference to using `compile_insert` and then calling `to_sql` on the resulting object to execute the SQL
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/crud.rb11
1 files changed, 0 insertions, 11 deletions
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