-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove constant email addresses in favour of env variable.
- Loading branch information
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
class Claims::ESFAMailer < Claims::ApplicationMailer | ||
ESFA_EMAIL_ADDRESS = "esfa@example.com".freeze | ||
private_constant :ESFA_EMAIL_ADDRESS | ||
|
||
def claims_require_clawback(url_for_csv) | ||
notify_email to: ESFA_EMAIL_ADDRESS, | ||
notify_email to: esfa_email_addresses, | ||
subject: t(".subject"), | ||
body: t(".body", url_for_csv:, support_email:, service_name:) | ||
end | ||
|
||
private | ||
|
||
def esfa_email_addresses | ||
ENV["CLAIMS_ESFA_EMAIL_ADDRESSES"].split(",") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters