Class: Decidim::Meetings::MeetingRegistrationNotificationEvent

Inherits:
Events::BaseEvent show all
Includes:
Events::NotificationEvent
Defined in:
decidim-meetings/app/events/decidim/meetings/meeting_registration_notification_event.rb

Instance Method Summary collapse

Methods inherited from Events::BaseEvent

#initialize, #resource_locator, #resource_path, #resource_text, #resource_title, #resource_url, #safe_resource_text, type

Methods included from TranslatableAttributes

#default_locale?

Constructor Details

This class inherits a constructor from Decidim::Events::BaseEvent

Instance Method Details

#i18n_optionsObject


12
13
14
15
16
17
18
19
# File 'decidim-meetings/app/events/decidim/meetings/meeting_registration_notification_event.rb', line 12

def i18n_options
  {
    resource_title: resource_title,
    resource_url: resource_url,
    scope: event_name,
    registration_code: extra["registration_code"]
  }
end

#notification_titleObject


8
9
10
# File 'decidim-meetings/app/events/decidim/meetings/meeting_registration_notification_event.rb', line 8

def notification_title
  I18n.t("notification_title", i18n_options).html_safe
end