Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to printing emails to logs in development #555

Merged
merged 1 commit into from Sep 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/web_app_skeleton/config/email.cr
Expand Up @@ -7,6 +7,8 @@ BaseEmail.configure do |settings|
# If you do need emails, get a key from SendGrid and set an ENV variable
send_grid_key = send_grid_key_from_env
settings.adapter = Carbon::SendGridAdapter.new(api_key: send_grid_key)
elsif Lucky::Env.development?
settings.adapter = Carbon::DevAdapter.new(print_emails: true)
stephendolan marked this conversation as resolved.
Show resolved Hide resolved
else
settings.adapter = Carbon::DevAdapter.new
end
Expand Down