]> git.openstreetmap.org Git - rails.git/commitdiff
Drop the old environment variable parsing
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 13 Mar 2019 15:40:31 +0000 (16:40 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 13 Mar 2019 17:06:23 +0000 (18:06 +0100)
It's likely unused, and incompatible with environment variable parsing from Config

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