module ViewComponent::PolymorphicSlots::ClassMethods
def renders_one(slot_name, callable = nil)
def renders_one(slot_name, callable = nil) return super unless callable.is_a?(Hash) && callable.key?(:types) validate_singular_slot_name(slot_name) register_polymorphic_slot(slot_name, callable[:types], collection: false) end