Removed gettext and simplified_localization-plugin. L18n is now the appropriate module.
Upgraded to rails 2.2.2 and replaced complex foodsoft.rb-loader with simple initializers/load_app_config.rb. Multiple foodcoops option is temporarly deactivated.
This commit is contained in:
parent
5b9a7e05df
commit
9f8d0d28ac
121 changed files with 1197 additions and 15237 deletions
9
config/initializers/load_app_config.rb
Normal file
9
config/initializers/load_app_config.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
raw_config = File.read(RAILS_ROOT + "/config/app_config.yml")
|
||||
APP_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys
|
||||
|
||||
|
||||
# Configuration of the exception_notification plugin
|
||||
# Mailadresses are set in config/foodsoft.yaml
|
||||
ExceptionNotifier.exception_recipients = APP_CONFIG[:error_recipients]
|
||||
ExceptionNotifier.sender_address = APP_CONFIG[:sender_address]
|
||||
ExceptionNotifier.email_prefix = APP_CONFIG[:email_prefix]
|
||||
Loading…
Add table
Add a link
Reference in a new issue