mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-13 23:37:47 +00:00
https://github.com/openfoodfoundation/openfoodnetwork/issues/2882 The email setup differs between Spree 1 and Spree 2. We already encapsulated that setup in a single method which now needed changing.
12 lines
429 B
Ruby
12 lines
429 B
Ruby
module OpenFoodNetwork
|
|
module EmailHelper
|
|
# Some specs trigger actions that send emails, for example creating an order.
|
|
# But sending emails doesn't work out-of-the-box. This code sets it up.
|
|
# It's here in a single place to allow an easy upgrade to Spree 2 which
|
|
# needs a different implementation of this method.
|
|
def setup_email
|
|
Spree::Config[:mails_from] = "test@ofn.example.org"
|
|
end
|
|
end
|
|
end
|