Class: Decidim::Assemblies::AdminLog::ValueTypes::MemberPositionPresenter
- Inherits:
-
Log::ValueTypes::DefaultPresenter
- Object
- Log::ValueTypes::DefaultPresenter
- Decidim::Assemblies::AdminLog::ValueTypes::MemberPositionPresenter
- Defined in:
- 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
-
#present ⇒ Object
Public: Presents the value as an assembly member position.
Instance Method Details
#present ⇒ Object
Public: Presents the value as an assembly member position.
Returns an HTML-safe String.
13 14 15 16 17 |
# File '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 |