Sha256: 9e0dd7fb1284c18aeb69222a8e7b7f22f421b4ff79599674280a652e38e7ca5e

Contents?: true

Size: 398 Bytes

Versions: 18

Compression:

Stored size: 398 Bytes

Contents

class UserMailer < ApplicationMailer

  def we_miss_you_reminder(user, cycles)
    @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: t(:we_miss_you),
           template_name: "#{cycles.ordinalize}_reminder"
    end
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mumuki-laboratory-5.3.0 app/mailers/user_mailer.rb
mumuki-laboratory-5.2.1 app/mailers/user_mailer.rb
mumuki-laboratory-5.2.0 app/mailers/user_mailer.rb
mumuki-laboratory-5.1.1 app/mailers/user_mailer.rb
mumuki-laboratory-5.1.0 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.12 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.11 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.10 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.9 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.8 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.7 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.6 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.5 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.4 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.3 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.2 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.1 app/mailers/user_mailer.rb
mumuki-laboratory-5.0.0 app/mailers/user_mailer.rb