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