mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Further simplify mail options logic
We were always adding this option anyway, so why not declare it to start with?
This commit is contained in:
@@ -20,9 +20,7 @@ module Spree
|
||||
private
|
||||
|
||||
def mail_server_settings
|
||||
settings = basic_settings.merge(user_credentials)
|
||||
|
||||
settings.merge(enable_starttls_auto: secure_connection?)
|
||||
basic_settings.merge(user_credentials)
|
||||
end
|
||||
|
||||
def user_credentials
|
||||
@@ -31,10 +29,13 @@ module Spree
|
||||
end
|
||||
|
||||
def basic_settings
|
||||
{ address: Config.mail_host,
|
||||
{
|
||||
address: Config.mail_host,
|
||||
domain: Config.mail_domain,
|
||||
port: Config.mail_port,
|
||||
authentication: }
|
||||
authentication:,
|
||||
enable_starttls_auto: secure_connection?,
|
||||
}
|
||||
end
|
||||
|
||||
def authentication
|
||||
|
||||
Reference in New Issue
Block a user