source: subversion/sites/rails_port/config/initializers/load_configs.rb @ 15161

Last change on this file since 15161 was 6564, checked in by xin, 12 years ago

added application.yml, refactored map method

File size: 419 bytes
Line 
1# This file loads various yml configuration files
2
3# Load application config
4APP_CONFIG = YAML.load(File.read(RAILS_ROOT + "/config/application.yml"))[RAILS_ENV]
5# This will let you more easily use helpers based on url_for in your mailers.
6ActionMailer::Base.default_url_options[:host] = APP_CONFIG['host']
7
8# Load texts in a particular language
9TEXT = YAML.load(File.read(RAILS_ROOT + "/config/text_outputs/en.yml"))
10
Note: See TracBrowser for help on using the repository browser.