Class: Decidim::Conferences::ConferenceRegistrationNotificationEvent

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

Instance Method Summary collapse

Instance Method Details

#i18n_optionsObject



12
13
14
15
16
17
18
# File 'app/events/decidim/conferences/conference_registration_notification_event.rb', line 12

def i18n_options
  {
    resource_title: resource_title,
    resource_url: resource_url,
    scope: event_name
  }
end

#notification_titleObject



8
9
10
# File 'app/events/decidim/conferences/conference_registration_notification_event.rb', line 8

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