Sha256: 85407b77bf37c862ae2c7fa1a0969cef18bd60eb401308b371a0fd8c339c0e50
Contents?: true
Size: 634 Bytes
Versions: 12
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true module Decidim module Debates module AdminLog module ValueTypes # This class presents the given value as a Decidim::Debates::DebateTitleBody. Check # the `DefaultPresenter` for more info on how value presenters work. class DebateTitleDescriptionPresenter < Decidim::Log::ValueTypes::DefaultPresenter def present return unless value renderer = Decidim::ContentRenderers::HashtagRenderer.new(h.decidim_escape_translated(value)) renderer.render(links: false).html_safe end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems