Correcting polymorphic relationship query builder

The previous attempt was much more naive, this is based on finding
the method that peforms the translation; Leveraging a .base_class

See ActiveRecord::PredicateBuilder.polymorphic_base_class_from_value