mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add missing documentation about config.action_mailer.preview_interceptors
[ci skip]
This commit is contained in:
parent
d690af13fc
commit
91ae653197
1 changed files with 6 additions and 0 deletions
|
@ -667,6 +667,12 @@ There are a number of settings available on `config.action_mailer`:
|
|||
config.action_mailer.interceptors = ["MailInterceptor"]
|
||||
```
|
||||
|
||||
* `config.action_mailer.preview_interceptors` registers interceptors which will be called before mail is previewed.
|
||||
|
||||
```ruby
|
||||
config.action_mailer.preview_interceptors = ["MyPreviewMailInterceptor"]
|
||||
```
|
||||
|
||||
* `config.action_mailer.preview_path` specifies the location of mailer previews.
|
||||
|
||||
```ruby
|
||||
|
|
Loading…
Reference in a new issue