Sha256: b5d6c5d180db056912f85531394b86542bfe7282546f08282579eed87485cf03
Contents?: true
Size: 784 Bytes
Versions: 45
Compression:
Stored size: 784 Bytes
Contents
# frozen_string_literal: true module Decidim module AdminLog # This class holds the logic to present a `Decidim::UserGroup` # 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 # UserGroupPresenter.new(action_log, view_helpers).present class UserGroupPresenter < Decidim::Log::BasePresenter private def has_diff? false end def action_string case action when "verify", "verify_via_csv", "reject" "decidim.admin_log.user_group.#{action}" else super end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems