Class: Spotlight::ContactForm

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/spotlight/contact_form.rb

Overview

Exhibit feedback form

Instance Method Summary collapse

Instance Method Details

#headersObject



20
21
22
23
24
25
26
27
# File 'app/models/spotlight/contact_form.rb', line 20

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