Skip to content

Commit

Permalink
Remove extracting polymorphic_base_class for Array in `Associatio…
Browse files Browse the repository at this point in the history
…nQueryValue`

It is handled by `PolymorphicArrayValue`.
  • Loading branch information
kamipo committed Sep 20, 2016
1 parent 6731365 commit cc125fc
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -68,9 +68,6 @@ def polymorphic_base_class_from_value
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
Expand Down

0 comments on commit cc125fc

Please sign in to comment.