Class: Decidim::Debates::AdminLog::ValueTypes::DebateTitleDescriptionPresenter
- Inherits:
-
Log::ValueTypes::DefaultPresenter
- Object
- Log::ValueTypes::DefaultPresenter
- Decidim::Debates::AdminLog::ValueTypes::DebateTitleDescriptionPresenter
- Defined in:
- app/presenters/decidim/debates/admin_log/value_types/debate_title_description_presenter.rb
Overview
This class presents the given value as a Decidim::Debates::DebateTitleBody. Check the ‘DefaultPresenter` for more info on how value presenters work.
Instance Method Summary collapse
Instance Method Details
#present ⇒ Object
10 11 12 13 14 15 |
# File 'app/presenters/decidim/debates/admin_log/value_types/debate_title_description_presenter.rb', line 10 def present return unless value renderer = Decidim::ContentRenderers::HashtagRenderer.new(h.decidim_escape_translated(value)) renderer.render(links: false).html_safe end |