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