Class: Spotlight::IndexingCompleteMailer

Inherits:
ActionMailer::Base
  • Object
show all
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) ⇒ Object



6
7
8
9
10
# File 'app/mailers/spotlight/indexing_complete_mailer.rb', line 6

def documents_indexed(csv_data, exhibit, user)
  @number = csv_data.length
  @exhibit = exhibit
  mail(to: user.email, subject: 'Document indexing complete')
end