Class: Decidim::ContentRenderers::MeetingRenderer
- Inherits:
-
ResourceRenderer
- Object
- ResourceRenderer
- Decidim::ContentRenderers::MeetingRenderer
- Defined in:
- lib/decidim/content_renderers/meeting_renderer.rb
Overview
A renderer that searches Global IDs representing meetings in content and replaces it with a link to their show page.
e.g. gid://<APP_NAME>/Decidim::Meetings::Meeting/1
Instance Method Summary collapse
Instance Method Details
#regex ⇒ Object
12 13 14 |
# File 'lib/decidim/content_renderers/meeting_renderer.rb', line 12 def regex %r{gid://([\w-]*/Decidim::Meetings::Meeting/(\d+))}i end |