module Decidim::Events::NotificationEvent
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
Public Instance Methods
notification_title()
click to toggle source
# File lib/decidim/events/notification_event.rb, line 22 def notification_title I18n.t( "decidim.events.notification_event.notification_title", resource_title: resource_title, resource_path: resource_path ).html_safe end