summaryrefslogtreecommitdiffstats
path: root/app/models/tracker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/tracker.rb')
-rw-r--r--app/models/tracker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/tracker.rb b/app/models/tracker.rb
index bfec75e70..ef2f48b04 100644
--- a/app/models/tracker.rb
+++ b/app/models/tracker.rb
@@ -93,6 +93,8 @@ class Tracker < ActiveRecord::Base
def to_s; name end
def <=>(tracker)
+ return nil unless tracker.is_a?(Tracker)
+
position <=> tracker.position
end