Removed hard coded links from mailer and views.
* Not tested every mail template. Hopefully everything works ;-)
This commit is contained in:
parent
2c1952d625
commit
f49c6493f4
9 changed files with 25 additions and 11 deletions
|
|
@ -17,6 +17,13 @@ end
|
|||
# Initial load the default config and database from rails environment
|
||||
Foodsoft.env = RAILS_ENV
|
||||
|
||||
# Set action mailer default host for url generating
|
||||
ActionMailer::Base.default_url_options = {
|
||||
:host => Foodsoft.config[:host],
|
||||
:port => Foodsoft.config[:port],
|
||||
:protocol => Foodsoft.config[:protocol]
|
||||
}
|
||||
|
||||
# Configuration of the exception_notification plugin
|
||||
# Mailadresses are set in config/foodsoft.yaml
|
||||
ExceptionNotifier.exception_recipients = Foodsoft.config[:notification]['error_recipients']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue