Skip to content

Commit 820ff72

Browse files
committed
EDIT: Hanami letter opener post
1 parent 322e337 commit 820ff72

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

_posts/2020/2020-01-10-configuring-letter-opener-for-hanami-development-environment.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@ If you look inside the `environment :production do` block you'll see that it con
6969
Here's the working setup code:
7070

7171
``` ruby
72-
mailer do
73-
root 'lib/project_name/mailers'
72+
environment :development do
73+
# See: https://guides.hanamirb.org/projects/logging
74+
logger level: :debug
7475

75-
delivery LetterOpener::DeliveryMethod, location: File.expand_path('../tmp/letter_opener', __FILE__)
76+
mailer do
77+
delivery LetterOpener::DeliveryMethod, location: File.expand_path('../tmp/letter_opener', __FILE__)
78+
end
7679
end
7780
```
7881

0 commit comments

Comments
 (0)