Removed unnecessary config params. Improved error handling.
This commit is contained in:
parent
61a87dacb6
commit
18e8a11b7d
4 changed files with 17 additions and 14 deletions
|
|
@ -22,9 +22,6 @@ development: &defaults
|
|||
email: foodsoft@myfoodcoop.org
|
||||
phone: "030 323 23249"
|
||||
|
||||
# base URL for this installation
|
||||
base_url: http://foodsoft.fctest.de
|
||||
|
||||
# Homepage
|
||||
homepage: http://www.fctest.de
|
||||
|
||||
|
|
|
|||
|
|
@ -18,11 +18,12 @@ end
|
|||
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]
|
||||
url_options = {
|
||||
:host => Foodsoft.config[:host],
|
||||
:protocol => Foodsoft.config[:protocol]
|
||||
}
|
||||
url_options.merge!({:port => Foodsoft.config[:port]}) if Foodsoft.config[:port]
|
||||
ActionMailer::Base.default_url_options = url_options
|
||||
|
||||
# Configuration of the exception_notification plugin
|
||||
# Mailadresses are set in config/foodsoft.yaml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue