Sha256: cdfb7ec9b9e55385fa060f78d55222f3500993dd8c3acdd782a7a4914562732a
Contents?: true
Size: 834 Bytes
Versions: 5
Compression:
Stored size: 834 Bytes
Contents
module CommonwealthVlrEngine module Notifier extend ActiveSupport::Concern def feedback(details) @message = details[:message] @topic = details[:topic] @email = details[:email] @name = details[:name] @recipient = route_email(details[:topic]) mail(:to => @recipient, :from => t('blacklight.email.record_mailer.name') + ' <' + t('blacklight.email.record_mailer.email') + '>', :subject => t('blacklight.feedback.text.subject', identifier: Time.now.strftime('%s'))) end private def route_email(topic) if topic == t('blacklight.feedback.form.topic.options.repro.option') recipient_email = CONTACT_EMAILS['image_requests'] else recipient_email = CONTACT_EMAILS['site_admin'] end recipient_email end end end
Version data entries
5 entries across 5 versions & 1 rubygems