]> git.openstreetmap.org Git - rails.git/commitdiff
Revert "Always look to the global scope for the GPX module"
authorTom Hughes <tom@compton.nu>
Wed, 14 Aug 2019 18:06:09 +0000 (19:06 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 14 Aug 2019 18:06:09 +0000 (19:06 +0100)
This reverts commit fbefe3550cec6d609ef1dc97ea4c48f73447cee4.

app/models/trace.rb

index adaba52ae23b87b301598f5d32e26dc8787224e7..f1cd72acd600f0ba2278b201c9427c8addaa91ae 100644 (file)
@@ -245,7 +245,7 @@ class Trace < ActiveRecord::Base
   def import
     logger.info("GPX Import importing #{name} (#{id}) from #{user.email}")
 
   def import
     logger.info("GPX Import importing #{name} (#{id}) from #{user.email}")
 
-    gpx = ::GPX::File.new(trace_name)
+    gpx = GPX::File.new(trace_name)
 
     f_lat = 0
     f_lon = 0
 
     f_lat = 0
     f_lon = 0