Sha256: 07314b21222a74a02eb49789fbd2458eee60f9aa0535a63f4f85f6ca63ecd543
Contents?: true
Size: 632 Bytes
Versions: 19
Compression:
Stored size: 632 Bytes
Contents
class UserMailer < ApplicationMailer def we_miss_you_reminder(user, cycles) send_reminder! user, t(:we_miss_you), "#{cycles.ordinalize}_reminder" end def no_submissions_reminder(user) send_reminder! user, t(:start_using_mumuki), "no_submissions_reminder" end private def send_reminder!(user, subject, template_name) @user = user @unsubscribe_code = User.unsubscription_verifier.generate(user.id) @organization = user.last_organization I18n.with_locale(@organization.locale) do mail to: user.email, subject: subject, template_name: template_name end end end
Version data entries
19 entries across 19 versions & 1 rubygems