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 1d0b11d..d2c7152 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