class Postmortem::Adapters::ActionMailer
Rails ActionMailer
adapter.
Private Instance Methods
adapted()
click to toggle source
# File lib/postmortem/adapters/action_mailer.rb, line 9 def adapted %i[from reply_to to cc subject message_id] .map { |field| [field, mail.public_send(field)] } .to_h .merge({ text_body: text_part, html_body: html_part, bcc: normalized_bcc }) end
mail()
click to toggle source
# File lib/postmortem/adapters/action_mailer.rb, line 20 def mail @mail ||= ::Mail.new(@data[:mail]) end
normalized_bcc()
click to toggle source
# File lib/postmortem/adapters/action_mailer.rb, line 16 def normalized_bcc ::Mail.new(to: @data[:bcc]).to end