diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-09-03 13:53:50 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-09-21 02:56:56 +0900 |
commit | cc125fc4e39702a3c7a3dc715b77c3a194733cf8 (patch) | |
tree | 48167b35ecebe7a165d50a22b60e1a3c25aaacf8 /activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb | |
parent | 67313650eb07bc7d99fb4fa3a339fb6c3a142f51 (diff) | |
download | rails-cc125fc4e39702a3c7a3dc715b77c3a194733cf8.tar.gz rails-cc125fc4e39702a3c7a3dc715b77c3a194733cf8.tar.bz2 rails-cc125fc4e39702a3c7a3dc715b77c3a194733cf8.zip |
Remove extracting `polymorphic_base_class` for `Array` in `AssociationQueryValue`
It is handled by `PolymorphicArrayValue`.
Diffstat (limited to 'activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb')
-rw-r--r-- | activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb b/activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb index 7e20cb2c63..d5b6327988 100644 --- a/activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb +++ b/activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb @@ -68,9 +68,6 @@ module ActiveRecord case value when Relation value.klass.base_class - when Array - val = value.compact.first - val.class.base_class if val.is_a?(Base) when Base value.class.base_class end |