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