Files
fizzy/app/mailers/notification/bundle_mailer.rb
T
Jason Zimdars 9bae30f771 Show account if you have multiple
It's hard to know which account email notifications are coming from
2025-11-20 22:03:54 -06:00

17 lines
472 B
Ruby

class Notification::BundleMailer < ApplicationMailer
include Mailers::Unsubscribable
helper NotificationsHelper
def notification(bundle)
@user = bundle.user
@bundle = bundle
@notifications = bundle.notifications
@unsubscribe_token = @user.generate_token_for(:unsubscribe)
mail \
to: bundle.user.identity.email_address,
subject: "Fizzy#{ " (#{ Current.account.name })" if @user.identity.accounts.many? }: Latest Activity"
end
end