]> git.openstreetmap.org Git - rails.git/commitdiff
Always look to the global scope for the GPX module
authorTom Hughes <tom@compton.nu>
Thu, 7 Feb 2019 18:40:35 +0000 (18:40 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 7 Feb 2019 18:40:35 +0000 (18:40 +0000)
app/models/trace.rb

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