Fix (non-background) mailing for single coop installs (PR #841, #788)

This commit is contained in:
wvengen 2021-02-26 15:10:22 +01:00 committed by wvengen
parent 7a6779ebfd
commit db5a499e4c

View file

@ -75,6 +75,9 @@ class FoodsoftConfig
self.scope = config[:default_scope] or raise "No default_scope is set" self.scope = config[:default_scope] or raise "No default_scope is set"
# Set defaults for backward-compatibility # Set defaults for backward-compatibility
set_missing set_missing
# Make sure relevant configuration is applied, also in single coops mode,
# where select_foodcoop is not called in every request.
setup_mailing
end end
def init_mailing def init_mailing