diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-12-29 02:31:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-29 02:31:54 -0500 |
commit | 3c90818129e9e295f35c928317c55c111a43d8a9 (patch) | |
tree | 36b94ceb5998451c140004269bcf2ead65b489a8 /activerecord/lib/active_record/relation | |
parent | 366f094598305074c4430fab581ddfd599c1cf96 (diff) | |
parent | cc125fc4e39702a3c7a3dc715b77c3a194733cf8 (diff) | |
download | rails-3c90818129e9e295f35c928317c55c111a43d8a9.tar.gz rails-3c90818129e9e295f35c928317c55c111a43d8a9.tar.bz2 rails-3c90818129e9e295f35c928317c55c111a43d8a9.zip |
Merge pull request #26376 from kamipo/remove_polymorphic_base_class_for_array
Remove extracting `polymorphic_base_class` for `Array` in `AssociationQueryValue`
Diffstat (limited to 'activerecord/lib/active_record/relation')
-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 dfffbbd14b..29860ec677 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 @@ -70,9 +70,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 |