Sha256: a18c851e5bcbe4cb9fd5b2f0d92c929c75ff88e84d7e86ff007bd9e2dec51708

Contents?: true

Size: 842 Bytes

Versions: 15

Compression:

Stored size: 842 Bytes

Contents

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_library-0.3.11 app/mailers/user_import_mailer.rb
enju_library-0.3.10 app/mailers/user_import_mailer.rb
enju_library-0.3.9 app/mailers/user_import_mailer.rb
enju_library-0.3.8 app/mailers/user_import_mailer.rb
enju_library-0.3.8.rc.2 app/mailers/user_import_mailer.rb
enju_library-0.3.8.rc.1 app/mailers/user_import_mailer.rb
enju_library-0.3.7 app/mailers/user_import_mailer.rb
enju_library-0.3.6 app/mailers/user_import_mailer.rb
enju_library-0.4.0.beta.4 app/mailers/user_import_mailer.rb
enju_library-0.4.0.beta.3 app/mailers/user_import_mailer.rb
enju_library-0.4.0.beta.2 app/mailers/user_import_mailer.rb
enju_library-0.4.0.beta.1 app/mailers/user_import_mailer.rb
enju_library-0.3.5 app/mailers/user_import_mailer.rb
enju_library-0.3.4 app/mailers/user_import_mailer.rb
enju_library-0.3.3 app/mailers/user_import_mailer.rb