Class: Decidim::Meetings::AdminLog::ValueTypes::MeetingTitleDescriptionPresenter

Inherits:
Log::ValueTypes::DefaultPresenter show all
Defined in:
decidim-meetings/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

Methods inherited from Log::ValueTypes::DefaultPresenter

#initialize

Constructor Details

This class inherits a constructor from Decidim::Log::ValueTypes::DefaultPresenter

Instance Method Details

#presentObject


10
11
12
13
14
15
# File 'decidim-meetings/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.translated_attribute(value))
  renderer.render(links: false).html_safe
end