Sha256: 199d154b7067510355140b0a0e051233a0dd4ddbf3fc6af7ff3d691f73f984a2
Contents?: true
Size: 829 Bytes
Versions: 8
Compression:
Stored size: 829 Bytes
Contents
# frozen_string_literal: true module Decidim module Votings module AdminLog # This class holds the logic to present a `Decidim::Votings::Voting` # 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 # PollingStationPresenter.new(action_log, view_helpers).present class PollingStationPresenter < Decidim::Log::BasePresenter private def action_string case action when "create", "delete", "update" "decidim.votings.admin_log.polling_station.#{action}" else super end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems