]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Always look to the global scope for the GPX module
[rails.git] / 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