Updated polymorphic plugin to support Sequel 4