Sha256: 0ff7f99fa83793b79eb8101cf88078628e40e67a13bf6e2275efb13ed7610b07

Contents?: true

Size: 442 Bytes

Versions: 50

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ##
  # Notify the curator that we're finished processing a
  # batch upload
  class IndexingCompleteMailer < ActionMailer::Base
    def documents_indexed(csv_data, exhibit, user, indexed_count: nil, errors: [])
      @number = indexed_count || csv_data.length
      @exhibit = exhibit
      @errors = errors
      mail(to: user.email, subject: 'Document indexing complete')
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.3.5 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.3.4 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.3.3 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.3.2 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.3.1 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.3.0 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.2.0 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.1.2 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.1.1 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.1.0 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.0.3 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.0.2 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.0.1 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-4.0.0 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-3.6.0.beta10 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-3.6.0.beta9 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-3.6.0.beta8 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-3.5.0.4 app/mailers/spotlight/indexing_complete_mailer.rb
blacklight-spotlight-3.6.0.beta7 app/mailers/spotlight/indexing_complete_mailer.rb