Sha256: de10e4df5ccef68c91fe90c08efcb46b0a0565d927990761211ed61669124ac0
Contents?: true
Size: 492 Bytes
Versions: 38
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true module Decidim module ContentRenderers # A renderer that searches Global IDs representing proposals in content # and replaces it with a link to their show page. # # e.g. gid://<APP_NAME>/Decidim::Proposals::Proposal/1 # # @see BaseRenderer Examples of how to use a content renderer class ProposalRenderer < ResourceRenderer def regex %r{gid://([\w-]*/Decidim::Proposals::Proposal/(\d+))}i end end end end
Version data entries
38 entries across 38 versions & 1 rubygems