Class: Decidim::Meetings::MeetingRegistrationNotificationEvent

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

Instance Method Summary collapse

Instance Method Details

#i18n_optionsObject



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

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

#notification_titleObject



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

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