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