Module: Decidim::Events::EmailEvent

Extended by:
ActiveSupport::Concern
Included in:
SimpleEvent, WelcomeNotificationEvent
Defined in:
lib/decidim/events/email_event.rb

Overview

This module is used to be included in event classes (those inheriting from ‘Decidim::Events::BaseEvent`) that need to send emails with the notification.

This modules adds the needed logic to deliver emails to a given user.

Example:

class MyEvent < Decidim::Events::BaseEvent
  include Decidim::Events::EmailEvent
end