Class: Decidim::ParticipatoryProcesses::AdminLog::ValueTypes::RolePresenter
- Inherits:
-
Log::ValueTypes::DefaultPresenter
- Object
- Log::ValueTypes::DefaultPresenter
- Decidim::ParticipatoryProcesses::AdminLog::ValueTypes::RolePresenter
- Defined in:
- decidim-participatory_processes/app/presenters/decidim/participatory_processes/admin_log/value_types/role_presenter.rb
Overview
This class presents the given value as a user role. Check the `DefaultPresenter` for more info on how value presenters work.
Instance Method Summary collapse
-
#present ⇒ Object
Public: Presents the value as a user role.
Methods inherited from Log::ValueTypes::DefaultPresenter
Constructor Details
This class inherits a constructor from Decidim::Log::ValueTypes::DefaultPresenter
Instance Method Details
#present ⇒ Object
Public: Presents the value as a user role.
Returns an HTML-safe String.
14 15 16 17 18 |
# File 'decidim-participatory_processes/app/presenters/decidim/participatory_processes/admin_log/value_types/role_presenter.rb', line 14 def present return if value.blank? h.t(value, scope: "decidim.admin.models.participatory_process_user_role.roles", default: value) end |