1
0
Fork 0
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:
yuuji.yaginuma 2018-06-14 14:08:05 +09:00
parent d690af13fc
commit 91ae653197

View file

@ -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