Class: Spotlight::IndexingCompleteMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/spotlight/indexing_complete_mailer.rb

Instance Method Summary collapse

Instance Method Details

#documents_indexed(csv_data, exhibit, user) ⇒ Object



4
5
6
7
8
# File 'app/mailers/spotlight/indexing_complete_mailer.rb', line 4

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