]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Added more non-ascii chars to validation (matching list of chars in other models)
[rails.git] / app / models / trace.rb
index 91492404be0c881b94c5523d053016d0dc69ac9b..5096a81aafcb7e69e9b77d8d90b3fd9f933ec545 100644 (file)
@@ -306,7 +306,7 @@ class Trace < ActiveRecord::Base
       tp.save!
     end
 
-    if gpx.actual_points > 0
+    if gpx.actual_points.positive?
       max_lat = Tracepoint.where(:gpx_id => id).maximum(:latitude)
       min_lat = Tracepoint.where(:gpx_id => id).minimum(:latitude)
       max_lon = Tracepoint.where(:gpx_id => id).maximum(:longitude)