Module: ActionMailer::DeliveryLog

Defined in:
runtime/action_mailer/capture.rb,
runtime/action_mailer/capture.rbs

Overview

The test gate's capture: append one JSON line per delivery to tmp/mail-capture.jsonl without the body, which can carry reset tokens.

Constant Summary collapse

PATH =

Spin-root relative; the harness reads the same file as ../tmp/....

"tmp/mail-capture.jsonl"

Class Method Summary collapse

Class Method Details

.deliver(message) ⇒ Message

append one JSON line and return the message.

Examples:

one recorded line

{"to":["user@example.com"],"from":null,"subject":"Welcome"}

Parameters:

  • message (Message) —

    the built mail

Returns:



22
# File 'runtime/action_mailer/capture.rb', line 22

def self.deliver: (Message message) -> Message