Sha256: f61ad116e4dc5738466afd8416c18cb9e71b641845ecb9d7bef656d42edadd85
Contents?: true
Size: 780 Bytes
Versions: 15
Compression:
Stored size: 780 Bytes
Contents
# frozen_string_literal: true module Decidim module Assemblies module AdminLog # This class holds the logic to present a `Decidim::AssembliesSetting` # 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 # AssembliesSettingPresenter.new(action_log, view_helpers).present class AssembliesSettingPresenter < Decidim::Log::BasePresenter private def action_string case action when "update" "decidim.admin_log.assembly_setting.#{action}" end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems