]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Move all settings to settings.yml
[rails.git] / app / models / trace.rb
index d2c71524505914e5739fa2b4e52b9176410a2b3f..892d41a2a217b5872cacc8a5724f63a36da5690c 100644 (file)
@@ -110,15 +110,15 @@ class Trace < ActiveRecord::Base
   end
 
   def large_picture_name
-    "#{GPX_IMAGE_DIR}/#{id}.gif"
+    "#{Settings.gpx_image_dir}/#{id}.gif"
   end
 
   def icon_picture_name
-    "#{GPX_IMAGE_DIR}/#{id}_icon.gif"
+    "#{Settings.gpx_image_dir}/#{id}_icon.gif"
   end
 
   def trace_name
-    "#{GPX_TRACE_DIR}/#{id}.gpx"
+    "#{Settings.gpx_trace_dir}/#{id}.gpx"
   end
 
   def mime_type