Removed hard coded links from mailer and views.

* Not tested every mail template. Hopefully everything works ;-)
This commit is contained in:
Benjamin Meichsner 2010-03-20 14:49:46 +01:00
parent 2c1952d625
commit f49c6493f4
9 changed files with 25 additions and 11 deletions

View file

@ -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']