Class: Decidim::Meetings::AdminLog::ValueTypes::MeetingTitleDescriptionPresenter
- Inherits:
-
Log::ValueTypes::DefaultPresenter
- Object
- Log::ValueTypes::DefaultPresenter
- Decidim::Meetings::AdminLog::ValueTypes::MeetingTitleDescriptionPresenter
- Defined in:
- app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
Overview
This class presents the given value as a Decidim::Meetings::MeetingTitleBody. 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/meetings/admin_log/value_types/meeting_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 |