Sha256: 3cc3f88f375f9ba25bd4d995928b18af00f4fec44e94e51cea76229aa5882fcf

Contents?: true

Size: 902 Bytes

Versions: 21

Compression:

Stored size: 902 Bytes

Contents

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

  def failed(resource_export_file)
    @resource_export_file = resource_export_file
    @library_group = LibraryGroup.site_config
    from = "#{LibraryGroup.system_name(resource_export_file.user.profile.locale)} <#{@library_group.user.email}>"
    subject = "#{I18n.t('resource_export_mailer.failed.subject')}: #{@resource_export_file.id}"
    mail(from: from, to: resource_export_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/resource_export_mailer.rb
enju_biblio-0.3.17 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.16 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.15 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.14 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.13 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.12 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.11 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.10 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.10.rc.3 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.10.rc.2 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.10.rc.1 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.9 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.8 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.7 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.6 app/mailers/resource_export_mailer.rb
enju_biblio-0.4.0.beta.2 app/mailers/resource_export_mailer.rb
enju_biblio-0.4.0.beta.1 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.5 app/mailers/resource_export_mailer.rb
enju_biblio-0.3.4 app/mailers/resource_export_mailer.rb