Class: Decidim::Meetings::RegistrationMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- Decidim::Meetings::RegistrationMailer
- Includes:
- ActionView::Helpers::SanitizeHelper, TranslationsHelper
- Defined in:
- decidim-meetings/app/mailers/decidim/meetings/registration_mailer.rb
Overview
A custom mailer for sending notifications to users when they join a meeting.
Instance Method Summary collapse
Methods included from TranslationsHelper
multi_translation, #translated_attribute
Instance Method Details
#confirmation(user, meeting) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'decidim-meetings/app/mailers/decidim/meetings/registration_mailer.rb', line 14 def confirmation(user, meeting) with_user(user) do @user = user @meeting = meeting @organization = @meeting.organization @locator = Decidim::ResourceLocatorPresenter.new(@meeting) subject = I18n.t("confirmation.subject", scope: "decidim.meetings.mailer.registration_mailer") mail(to: user.email, subject: subject) end end |