aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/to_sql.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-07-14 21:10:20 +0530
committerVipul A M <vipulnsward@gmail.com>2013-11-10 11:29:17 +0530
commit87fd8b390328557661500208b64cc15f61efddd1 (patch)
treef745be292138bc595ce83cc7e5a78b370a5baea8 /lib/arel/visitors/to_sql.rb
parent5f5a1447bef24ec216c8f21e8a0b6dd6623168b8 (diff)
downloadrails-87fd8b390328557661500208b64cc15f61efddd1.tar.gz
rails-87fd8b390328557661500208b64cc15f61efddd1.tar.bz2
rails-87fd8b390328557661500208b64cc15f61efddd1.zip
Remove deprecated calls to using `UpdateManager` without setting `UpdateManager#key`
Diffstat (limited to 'lib/arel/visitors/to_sql.rb')
-rw-r--r--lib/arel/visitors/to_sql.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb
index b61d5f7acd..1d8cd35806 100644
--- a/lib/arel/visitors/to_sql.rb
+++ b/lib/arel/visitors/to_sql.rb
@@ -85,17 +85,7 @@ module Arel
if o.orders.empty? && o.limit.nil?
wheres = o.wheres
else
- key = o.key
- unless key
- warn(<<-eowarn) if $VERBOSE
-(#{caller.first}) Using UpdateManager without setting UpdateManager#key is
-deprecated and support will be removed in Arel 4.0.0. Please set the primary
-key on UpdateManager using UpdateManager#key= '#{key.inspect}'
- eowarn
- key = o.relation.primary_key
- end
-
- wheres = [Nodes::In.new(key, [build_subselect(key, o)])]
+ wheres = [Nodes::In.new(o.key, [build_subselect(o.key, o)])]
end
[