Class: Members::InviteReminderMailer::LastEmail
- Inherits:
-
Object
- Object
- Members::InviteReminderMailer::LastEmail
- Defined in:
- app/mailers/members/invite_reminder_mailer.rb
Instance Method Summary collapse
- #body_text ⇒ Object
- #extra_body_options(created_at_date) ⇒ Object
- #salutation ⇒ Object (also: #salutation_html)
- #subject ⇒ Object
Instance Method Details
#body_text ⇒ Object
120 121 122 123 124 125 126 |
# File 'app/mailers/members/invite_reminder_mailer.rb', line 120 def body_text s_( "InviteReminderEmail|It's been %{invitation_age} days since %{inviter} invited you to join the " \ "%{strong_start}%{project_or_group_name}%{strong_end} %{project_or_group} as a %{role}. " \ "What would you like to do?" ) end |
#extra_body_options(created_at_date) ⇒ Object
128 129 130 131 132 |
# File 'app/mailers/members/invite_reminder_mailer.rb', line 128 def (created_at_date) { invitation_age: (Date.current - created_at_date).to_i } end |
#salutation ⇒ Object Also known as: salutation_html
114 115 116 |
# File 'app/mailers/members/invite_reminder_mailer.rb', line 114 def salutation s_('InviteReminderEmail|In case you missed it…') end |
#subject ⇒ Object
110 111 112 |
# File 'app/mailers/members/invite_reminder_mailer.rb', line 110 def subject s_('InviteReminderEmail|%{inviter} is still waiting for you to join GitLab') end |