Class: Decidim::Assemblies::AdminLog::ValueTypes::MemberPositionPresenter

Inherits:
Log::ValueTypes::DefaultPresenter show all
Defined in:
decidim-assemblies/app/presenters/decidim/assemblies/admin_log/value_types/member_position_presenter.rb

Overview

This class presents the given value as an assembly member position. 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

Public: Presents the value as an assembly member position.

Returns an HTML-safe String.


13
14
15
16
17
# File 'decidim-assemblies/app/presenters/decidim/assemblies/admin_log/value_types/member_position_presenter.rb', line 13

def present
  return if value.blank?

  h.t(value, scope: "decidim.admin.models.assembly_member.positions", default: value)
end