* Replaced granular emails with the default one * Set reply to header in emails * Extract shared_examples from NotifyMailer * Removed unused code * Replaced SiteConfig with Settings::General * Fixes related to replacing SiteConfig with Settings * Removed duplicate line from specs
11 lines
265 B
Ruby
11 lines
265 B
Ruby
module DataUpdateScripts
|
|
class UpdateDefaultEmailAddresses
|
|
def run
|
|
return if Settings::General.email_addresses[:default].present?
|
|
|
|
Settings::General.email_addresses = {
|
|
default: ApplicationConfig["DEFAULT_EMAIL"]
|
|
}
|
|
end
|
|
end
|
|
end
|