Skip to content

Commit 3b8fe75

Browse files
authored
[docs] Change email delivery method from receipt to invoice_paid (#572)
* [docs] Change email delivery method from receipt to invoice_paid This is a confusing example and not a realistic name for ActionMailer method, also a special key with special handling in params making this confusing * Update email.md to include 'record' in params It wasn't clear if i still needed to override
1 parent 05c1aca commit 3b8fe75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/delivery_methods/email.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Sends an email to each recipient.
55
```ruby
66
deliver_by :email do |config|
77
config.mailer = "UserMailer"
8-
config.method = :receipt
8+
config.method = :invoice_paid
99
config.params = ->{ params }
1010
config.args = ->{ [1, 2, 3] }
1111

@@ -27,7 +27,7 @@ end
2727

2828
- `params` - _Optional_
2929

30-
Use a custom method to define the params sent to the mailer. `recipient` will be merged into the params.
30+
Use a custom method to define the params sent to the mailer. `recipient` and `record` will be merged into the params.
3131

3232
- `args` - _Optional_
3333

0 commit comments

Comments
 (0)