Module: Decidim::Events::NotificationEvent

Extended by:
ActiveSupport::Concern
Included in:
ChangeNicknameEvent, SimpleEvent, WelcomeNotificationEvent
Defined in:
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