Sha256: 6d125baa8fe8863132ee1790a2033da714a9a21e24f404303d2456c0bbc5e81e

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 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.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.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

1 entries across 1 versions & 1 rubygems

Version Path
enju_event-0.4.0.rc.1 app/mailers/event_export_mailer.rb