3 config = YAML.load_file(File.expand_path("../application.yml", __FILE__))
4 env = ENV['RAILS_ENV'] || 'development'
6 ENV.each do |key,value|
7 if key.match(/^OSM_(.*)$/)
8 Object.const_set(Regexp.last_match(1).upcase, value)
12 config[env].each do |key,value|
13 unless Object.const_defined?(key.upcase)
14 Object.const_set(key.upcase, value)