diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-07-14 20:32:34 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-11-10 09:50:26 +0530 |
commit | 4cbc19075bd2bdf77b591a362db2bd4f72722754 (patch) | |
tree | 59bfef606638ebb6a406e9c1d82082575f407a43 /lib | |
parent | 6aa055f5ab8ad4aee2791d9ba505d8328707ca83 (diff) | |
download | rails-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')
-rw-r--r-- | lib/arel/crud.rb | 11 |
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 |