Skip to content

Commit 27d0c22

Browse files
dkaniEdouard-chin
authored andcommitted
[ci skip] Tweak the Action Mailer callbacks documentation:
- Detail the order of callbacks callbacks called by Action Mailer when sending an email.
1 parent 5996c14 commit 27d0c22

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

guides/source/action_mailer_basics.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -793,13 +793,18 @@ end
793793
Action Mailer Callbacks
794794
-----------------------
795795

796-
Action Mailer allows for you to specify a [`before_action`][],
797-
[`after_action`][], and [`around_action`][] to configure the message, and
798-
[`before_deliver`][], [`after_deliver`][] and [`around_deliver`][] to control
799-
the delivery.
796+
Action Mailer allows for you to specify `*_action` callbacks to configure the message, and `*_deliver` callbacks to control the delivery.
800797

801-
Callbacks can be specified with a block or a symbol representing a method name
802-
in the mailer class, similar to other callbacks (in controllers or models).
798+
Here is a list with all the available Action Mailer callbacks, listed **in the order in which they will get called** when sending an email:
799+
800+
* [`before_action`][]
801+
* [`around_action`][]
802+
* [`after_action`][]
803+
* [`before_deliver`][]
804+
* [`around_deliver`][]
805+
* [`after_deliver`][]
806+
807+
Callbacks can be specified with a block or a symbol representing a method name in the mailer class, similar to other callbacks (in controllers or models).
803808

804809
Here are some examples of when you may use one of these callbacks with mailers.
805810

0 commit comments

Comments
 (0)