Sha256: 69394c5b86fb66c3e79131b12f706252a93509a756c101f6f01dbc844abb029b
Contents?: true
Size: 965 Bytes
Versions: 18
Compression:
Stored size: 965 Bytes
Contents
# frozen_string_literal: true module Decidim module Conferences module AdminLog # This class holds the logic to present a `Decidim::Conferences::Invite` # for the `AdminLog` log. # # Usage should be automatic and you should not need to call this class # directly, but here is an example: # # action_log = Decidim::ActionLog.last # view_helpers # => this comes from the views # ConferenceInvitePresenter.new(action_log, view_helpers).present class ConferenceInvitePresenter < Decidim::Log::BasePresenter private def action_string case action when "create", "delete", "update" "decidim.conferences.admin_log.invite.#{action}" else super end end def i18n_params super.merge( attendee_name: action_log.resource.user.name ) end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems