aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 17:13:42 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 17:13:42 -0200
commite7e72ec7d7a5869a070c086cf5d5b2cb869e19a6 (patch)
tree8e68aa101f4ef1ff16a9d130e9e4580eb5c56205
parentfdc0d934249c14fda352f84c7c9fd5f16385e76f (diff)
downloadrails-e7e72ec7d7a5869a070c086cf5d5b2cb869e19a6.tar.gz
rails-e7e72ec7d7a5869a070c086cf5d5b2cb869e19a6.tar.bz2
rails-e7e72ec7d7a5869a070c086cf5d5b2cb869e19a6.zip
Remove special case for symbols at find
Deprecated finders are not supported anymore
-rw-r--r--activerecord/lib/active_record/core.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index c1eaa4f49b..e77e49a8c7 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -119,8 +119,6 @@ module ActiveRecord
def find(*ids)
# We don't have cache keys for this stuff yet
return super unless ids.length == 1
- # Allow symbols to super to maintain compatibility for deprecated finders until Rails 5
- return super if ids.first.kind_of?(Symbol)
return super if block_given? ||
primary_key.nil? ||
default_scopes.any? ||