Sha256: 108a13670b178701429991980c0ad7454fc12cbe6f74e8c62b7ce2ec43fd2ac7
Contents?: true
Size: 653 Bytes
Versions: 64
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true module Decidim module Assemblies module AdminLog module ValueTypes # This class presents the given value as a user role. Check # the `DefaultPresenter` for more info on how value # presenters work. class RolePresenter < Decidim::Log::ValueTypes::DefaultPresenter # Public: Presents the value as a user role. # # Returns an HTML-safe String. def present return if value.blank? h.t(value, scope: "decidim.admin.models.assembly_user_role.roles", default: value) end end end end end end
Version data entries
64 entries across 64 versions & 1 rubygems