foodsoft/config/initializers/load_app_config.rb

9 lines
417 B
Ruby
Raw Normal View History

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]