Sha256: b293976adf65ade8c8c2a4bddf56c24f478f710932c435abeb5e54f2b2e502df

Contents?: true

Size: 832 Bytes

Versions: 1

Compression:

Stored size: 832 Bytes

Contents

class UserExportMailer < ApplicationMailer
  def completed(user_export_file)
    @user_export_file = user_export_file
    @library_group = LibraryGroup.site_config
    from = "#{LibraryGroup.system_name(user_export_file.user.profile.locale)} <#{@library_group.email}>"
    subject = "#{I18n.t('user_export_mailer.completed.subject')}: #{@user_export_file.id}"
    mail(from: from, to: user_export_file.user.email, subject: subject)
  end

  def failed(user_export_file)
    @user_export_file = user_export_file
    @library_group = LibraryGroup.site_config
    from = "#{LibraryGroup.system_name(user_export_file.user.profile.locale)} <#{@library_group.email}>"
    subject = "#{I18n.t('user_export_mailer.failed.subject')}: #{@user_export_file.id}"
    mail(from: from, to: user_export_file.user.email, subject: subject)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_library-0.4.0.rc.1 app/mailers/user_export_mailer.rb