Sha256: 05047dcd09d8c4396c2580f3e372bb1cd1567a3ec6df8cdb15e1dcefebad1e89
Contents?: true
Size: 1.03 KB
Versions: 16
Compression:
Stored size: 1.03 KB
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses module AdminLog # This class holds the logic to present a `Decidim::Step` # for the `AdminLog` log. # # Usage should be automatic and you shouldn't need to call this class # directly, but here's an example: # # action_log = Decidim::ActionLog.last # view_helpers # => this comes from the views # StepPresenter.new(action_log, view_helpers).present class StepPresenter < Decidim::Log::BasePresenter private def diff_fields_mapping { description: :i18n, title: :i18n } end def action_string case action when "activate", "create", "delete", "update" "decidim.admin_log.participatory_process_step.#{action}" else super end end def i18n_labels_scope "activemodel.attributes.participatory_process_step" end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems