Sha256: 289f27d81966bdf9f76b184e1c597b8e4ae60f98a2f48185a0f30a3a3c24041b
Contents?: true
Size: 575 Bytes
Versions: 15
Compression:
Stored size: 575 Bytes
Contents
module PointlessFeedback class FeedbackMailer < ActionMailer::Base def feedback(message) @message = message mail(:to => to_emails, :subject => feedback_subject, :from => from_address) end private def from_address if PointlessFeedback.send_from_submitter @message.email_address else PointlessFeedback.from_email end end def to_emails Array(PointlessFeedback.to_emails) end def feedback_subject I18n.t('pointless_feedback.email.subject', :default => 'Feedback') end end end
Version data entries
15 entries across 15 versions & 1 rubygems