aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-10 16:50:43 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-10 16:50:43 -0800
commit03f51687e204f03cdf8d8395350d4d0514a7f620 (patch)
treefd353b7936bd77ca2c8b624c31cab6b650b74bca /lib/arel/visitors
parente0d3bcb6519faec69326a98413cb6d5406d9cb58 (diff)
parent9cbfc8a370bf6537a02a2f21e7246dc21ba4cf1f (diff)
downloadrails-03f51687e204f03cdf8d8395350d4d0514a7f620.tar.gz
rails-03f51687e204f03cdf8d8395350d4d0514a7f620.tar.bz2
rails-03f51687e204f03cdf8d8395350d4d0514a7f620.zip
Merge pull request #198 from vipulnsward/deprecations
Deprecations
Diffstat (limited to 'lib/arel/visitors')
-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
[