retrospring/config/initializers/10_config.rb
2017-03-31 22:16:23 +02:00

5 lines
239 B
Ruby

# Auxiliary config
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'] }