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