Class: Decidim::Meetings::MeetingRegistrationsEnabledEvent

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

Instance Method Summary collapse

Methods inherited from Events::BaseEvent

#initialize, #resource_locator, #resource_path, #resource_url, types

Constructor Details

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

Instance Method Details

#email_introObject



16
17
18
19
20
21
# File 'decidim-meetings/app/events/decidim/meetings/meeting_registrations_enabled_event.rb', line 16

def email_intro
  I18n.t(
    "decidim.meetings.events.meeting_registrations_enabled.email_intro",
    resource_title: resource_title
  )
end

#email_outroObject



23
24
25
26
27
28
# File 'decidim-meetings/app/events/decidim/meetings/meeting_registrations_enabled_event.rb', line 23

def email_outro
  I18n.t(
    "decidim.meetings.events.meeting_registrations_enabled.email_outro",
    resource_title: resource_title
  )
end

#email_subjectObject



9
10
11
12
13
14
# File 'decidim-meetings/app/events/decidim/meetings/meeting_registrations_enabled_event.rb', line 9

def email_subject
  I18n.t(
    "decidim.meetings.events.meeting_registrations_enabled.email_subject",
    resource_title: resource_title
  )
end

#notification_titleObject



30
31
32
33
34
35
36
# File 'decidim-meetings/app/events/decidim/meetings/meeting_registrations_enabled_event.rb', line 30

def notification_title
  I18n.t(
    "decidim.meetings.events.meeting_registrations_enabled.notification_title",
    resource_title: resource_title,
    resource_path: resource_path
  ).html_safe
end