App config with indifferent hash access

This commit is contained in:
Georg Gadinger 2017-03-31 22:16:23 +02:00
parent 10d16466fd
commit 3a663eeb09
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# Auxiliary config
APP_CONFIG = YAML.load_file(Rails.root.join('config', 'justask.yml'))
APP_CONFIG = YAML.load_file(Rails.root.join('config', 'justask.yml')).with_indifferent_access
# Update rails config for mail
Rails.application.config.action_mailer.default_url_options = { host: APP_CONFIG['hostname'] }