Sha256: a3869f7406784560b7eda8f172775dcc633db112446b0dac8578b0d7e9c9f570
Contents?: true
Size: 869 Bytes
Versions: 18
Compression:
Stored size: 869 Bytes
Contents
# frozen_string_literal: true module Decidim module Events # 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 module NotificationEvent extend ActiveSupport::Concern included do type :notification def notification_title I18n.t( "decidim.events.notification_event.notification_title", resource_title:, resource_path: ).html_safe end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems