Class: UserExportMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- UserExportMailer
- Defined in:
- app/mailers/user_export_mailer.rb
Instance Method Summary collapse
Instance Method Details
#completed(user_export_file) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/mailers/user_export_mailer.rb', line 2 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 |
#failed(user_export_file) ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/mailers/user_export_mailer.rb', line 10 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 |