Sha256: 8e544ff0686cfb53c1e782610622dc075d3ee28539ce64187daf4f9507d78210
Contents?: true
Size: 808 Bytes
Versions: 6
Compression:
Stored size: 808 Bytes
Contents
# frozen_string_literal: true module Decidim module Initiatives class RevokeMembershipRequestEvent < Decidim::Events::SimpleEvent def i18n_scope = "decidim.initiatives.events.revoke_membership_request" def i18n_options { author_nickname:, author_profile_url:, participatory_space_title:, participatory_space_url:, resource_path:, resource_title:, resource_url:, scope: i18n_scope } end private def author_nickname author.nickname end def author_profile_url author.profile_url end def author @author ||= Decidim::UserPresenter.new( Decidim::User.find(@extra["author"]["id"]) ) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems