From 6ebc85c77aec89a3a34394adaded373dadcde256 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Thu, 9 Jan 2025 17:39:27 +0800 Subject: [PATCH] chore: update default email in application mailer - Change default from email to a placeholder value - This avoids using sensitive environment variables during development This change ensures that the application does not expose sensitive information while still allowing for email functionality in a development environment. --- app/mailers/application_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index cf7a978..c146f0a 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,4 +1,4 @@ class ApplicationMailer < ActionMailer::Base - default from: ENV.fetch("RAILS_SMTP_USERNAME", Rails.application.credentials.dig(:smtp, :user_name)) + default from: ENV.fetch("RAILS_SMTP_USERNAME", "user@example.com") layout "mailer" end