Set the common ActionMailer default_url_options only once

There is no need to set options other than the foodcoop during every
change of the scope. This also makes sure that the correct options will
be loaded during testing to fix problems with newer rails versions.
This commit is contained in:
Patrick Gansterer 2019-10-28 21:04:59 +01:00
parent 722bb474d1
commit 91eeac6c40
4 changed files with 10 additions and 3 deletions

View file

@ -3,3 +3,4 @@
# Load Config, start by selecting defaults via current environment
require 'foodsoft_config'
FoodsoftConfig.init
FoodsoftConfig.init_mailing