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



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

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