Sha256: ffe39d1cc8dd71d2f568f6375a6547c3c2f1b6379dcfdc51fa726bf45736cab5
Contents?: true
Size: 842 Bytes
Versions: 15
Compression:
Stored size: 842 Bytes
Contents
class UserExportMailer < ApplicationMailer def completed(user_export_file) @user_export_file = user_export_file @library_group = LibraryGroup.site_config from = "#{LibraryGroup.system_name(user_export_file.user.profile.locale)} <#{@library_group.user.email}>" subject = "#{I18n.t('user_export_mailer.completed.subject')}: #{@user_export_file.id}" mail(from: from, to: user_export_file.user.email, subject: subject) end def failed(user_export_file) @user_export_file = user_export_file @library_group = LibraryGroup.site_config from = "#{LibraryGroup.system_name(user_export_file.user.profile.locale)} <#{@library_group.user.email}>" subject = "#{I18n.t('user_export_mailer.failed.subject')}: #{@user_export_file.id}" mail(from: from, to: user_export_file.user.email, subject: subject) end end
Version data entries
15 entries across 15 versions & 1 rubygems