Class: Spotlight::IndexingCompleteMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Spotlight::IndexingCompleteMailer
- Defined in:
- app/mailers/spotlight/indexing_complete_mailer.rb
Overview
Notify the curator that we’re finished processing a batch upload
Instance Method Summary collapse
Instance Method Details
#documents_indexed(csv_data, exhibit, user, indexed_count: nil, errors: []) ⇒ Object
8 9 10 11 12 13 |
# File 'app/mailers/spotlight/indexing_complete_mailer.rb', line 8 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 |