Sha256: 0369a952fcdf66115a5296c5d7b210b2295c9768cb47377d7def256329bf0f78
Contents?: true
Size: 937 Bytes
Versions: 18
Compression:
Stored size: 937 Bytes
Contents
# frozen_string_literal: true module Decidim module Forms module AdminLog # This class holds the logic to present a `Decidim::Forms::Questionnaire` # 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 # QuestionnairePresenter.new(action_log, view_helpers).present class QuestionnairePresenter < Decidim::Log::BasePresenter private def action_string case action when "update" "decidim.forms.admin_log.questionnaire.#{action}" else super end end def i18n_params super.merge( meeting_name: resource_presenter.try(:present) ) end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems