]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Use the conventional 'destroy' method name for destroying traces
[rails.git] / app / models / trace.rb
index adaba52ae23b87b301598f5d32e26dc8787224e7..d500784af882892ab065d8134fcfdf236c9be353 100644 (file)
@@ -25,7 +25,7 @@
 #  gpx_files_user_id_fkey  (user_id => users.id)
 #
 
-class Trace < ActiveRecord::Base
+class Trace < ApplicationRecord
   self.table_name = "gpx_files"
 
   belongs_to :user, :counter_cache => true
@@ -245,7 +245,7 @@ class Trace < ActiveRecord::Base
   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