Sha256: 5c8ee8162f306a35c51fca8d13d75fe65eb72aaa787a143e6980874208182eb8
Contents?: true
Size: 686 Bytes
Versions: 12
Compression:
Stored size: 686 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses module Admin # A command to notify users when a role is assigned for a participatory process class NotifyRoleAssignedToParticipatoryProcess < Decidim::Command def send_notification(user) Decidim::EventsManager.publish( event: "decidim.events.participatory_process.role_assigned", event_class: Decidim::ParticipatoryProcessRoleAssignedEvent, resource: form.current_participatory_space, affected_users: [user], extra: { role: form.role } ) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems