Sha256: 12c2455a58b3cdd90142044988ead58bc6ece888c97e4c88f8bcd6cec4c98d1a
Contents?: true
Size: 597 Bytes
Versions: 29
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true module Blacklight # Shim to support ViewComponent v2 slots using the content_areas API for backwards compatibility module ContentAreasShim # Shim the `with` helper to write content into slots instead def with(slot_name, *args, **kwargs, &block) Deprecation.warn(Blacklight::ContentAreasShim, 'ViewComponents deprecated `with` and it will be removed in ViewComponents 3.0. content_areas. Use slots (https://viewcomponent.org/guide/slots.html) instead.') public_send(slot_name, *args, **kwargs, &block) end end end
Version data entries
29 entries across 29 versions & 1 rubygems