Class: Spotlight::ContactForm

Inherits:
MailForm::Base
  • Object
show all
Defined in:
app/models/spotlight/contact_form.rb

Overview

Exhibit feedback form

Instance Method Summary collapse

Instance Method Details

#headersObject



15
16
17
18
19
20
21
22
# File 'app/models/spotlight/contact_form.rb', line 15

def headers
  {
    subject: "#{I18n.t(:'blacklight.application_name')} Contact Form",
    to: Spotlight::Engine.config.default_contact_email || current_exhibit.contact_emails.first.to_s,
    from: %("#{name}" <#{email}>),
    cc: current_exhibit.contact_emails.join(', ')
  }
end