Sha256: 4f1f3fa1a85d1d7fd0eda912f26d48f886b12e8c9fb88d0c1ed72374dbc96eb0

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

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