diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-05 17:13:42 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-05 17:13:42 -0200 |
commit | e7e72ec7d7a5869a070c086cf5d5b2cb869e19a6 (patch) | |
tree | 8e68aa101f4ef1ff16a9d130e9e4580eb5c56205 | |
parent | fdc0d934249c14fda352f84c7c9fd5f16385e76f (diff) | |
download | rails-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.rb | 2 |
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? || |