mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #2124 from coopdevs/replace-mail-method-in-base-mailer-decorator
Remove deprecated reference to Spree::MailMethod
This commit is contained in:
@@ -8,8 +8,7 @@ Spree::BaseMailer.class_eval do
|
||||
protected
|
||||
|
||||
def from_address
|
||||
Spree::MailMethod.current.andand.preferred_mails_from ||
|
||||
'test@example.com'
|
||||
Spree::Config[:mails_from] || 'test@example.com'
|
||||
end
|
||||
|
||||
def roadie_options
|
||||
|
||||
@@ -4,6 +4,8 @@ Spree::AppConfiguration.class_eval do
|
||||
# we can allow to be modified in the UI by adding appropriate form
|
||||
# elements to existing or new configuration pages.
|
||||
|
||||
preference :mails_from, :string, default: 'no-reply@example.com'
|
||||
|
||||
# Embedded Shopfronts
|
||||
preference :enable_embedded_shopfronts, :boolean, default: false
|
||||
preference :embedded_shopfronts_whitelist, :text, default: nil
|
||||
|
||||
Reference in New Issue
Block a user