Sha256: 765292f92887a9b6da9619e291cdcf5f44ffd77b0141827dbd568123c508414f

Contents?: true

Size: 857 Bytes

Versions: 21

Compression:

Stored size: 857 Bytes

Contents

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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.17 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.16 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.15 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.14 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.13 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.12 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.11 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.10 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.10.rc.3 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.10.rc.2 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.10.rc.1 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.9 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.8 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.7 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.6 app/mailers/agent_import_mailer.rb
enju_biblio-0.4.0.beta.2 app/mailers/agent_import_mailer.rb
enju_biblio-0.4.0.beta.1 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.5 app/mailers/agent_import_mailer.rb
enju_biblio-0.3.4 app/mailers/agent_import_mailer.rb