Module: Decidim::Events::NotificationEvent
- Extended by:
- ActiveSupport::Concern
- Included in:
- ChangeNicknameEvent, Conferences::ConferenceRegistrationNotificationEvent, Conferences::ConferenceRoleAssignedEvent, DummyResources::DummyResourceEvent, SimpleEvent, Initiatives::ApproveMembershipRequestEvent, Initiatives::CreateInitiativeEvent, Initiatives::RevokeMembershipRequestEvent, Initiatives::SpawnCommitteeRequestEvent, Meetings::MeetingRegistrationNotificationEvent, ParticipatoryProcessRoleAssignedEvent, RoleAssignedToAssemblyEvent, WelcomeNotificationEvent
- Defined in:
- decidim-core/lib/decidim/events/notification_event.rb
Overview
This module is used to be included in event classes (those inheriting from ‘Decidim::Events::BaseEvent`) that need to create system notifications, which will be later listed to the user in their Notifications Dashboard.
This modules adds the needed logic to display these notifications.
Example:
class MyEvent < Decidim::Events::BaseEvent
include Decidim::Events::NotificationEvent
end