]> git.openstreetmap.org Git - rails.git/blobdiff - config/preinitializer.rb
Drop the old environment variable parsing
[rails.git] / config / preinitializer.rb
index 07f10572286923c6b2b9acc074c83e84a6bc3d83..253f58605f798ef54a6f40acc926c02d49593091 100644 (file)
@@ -8,10 +8,6 @@ env = if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(
 
 config = YAML.load_file(File.expand_path(env == "test" ? "../example.application.yml" : "../application.yml", __FILE__))
 
-ENV.each do |key, value|
-  Object.const_set(Regexp.last_match(1).upcase, value) if key =~ /^OSM_(.*)$/
-end
-
 config[env].each do |key, value|
   Object.const_set(key.upcase, value) unless Object.const_defined?(key.upcase)
 end