]> git.openstreetmap.org Git - rails.git/blobdiff - config/preinitializer.rb
User getImageLocation to get the URLs for markers
[rails.git] / config / preinitializer.rb
index 357e30218fef8d9bb2c08423378e85986b21ba11..1cc3f62c780a37bf64e6920bf1ed1bbf144ee9ca 100644 (file)
@@ -1,6 +1,6 @@
 require 'yaml'
 
-config = YAML.load_file("#{RAILS_ROOT}/config/application.yml")
+config = YAML.load_file(File.expand_path("../application.yml", __FILE__))
 env = ENV['RAILS_ENV'] || 'development'
 
 ENV.each do |key,value|