photomix/config/initializers/load_settings.rb

3 lines
205 B
Ruby
Raw Normal View History

2009-08-04 13:39:28 +02:00
#APP_CONFIG = YAML.load_file("#{RAILS_ROOT}/config/settings.yml")[RAILS_ENV].symbolize_keys
APP_CONFIG = YAML.load(ERB.new(File.read("#{RAILS_ROOT}/config/settings.yml")).result)[RAILS_ENV].symbolize_keys