chore: update default email in application mailer
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run

- 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.
This commit is contained in:
songtianlun 2025-01-09 17:39:27 +08:00
parent 7cf8411afa
commit 6ebc85c77a

View File

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