]> projects.mako.cc - selectricity-live/blobdiff - app/models/candidate.rb
Fixed the detailed results so that they return anonymized results in
[selectricity-live] / app / models / candidate.rb
index 44a4d63ff4660f6558d8146bf1c6801d3627e3ba..e17ba29b5f1ff866e3dd3c0d9c26beaa5b105aa5 100644 (file)
@@ -1,3 +1,12 @@
 class Candidate < ActiveRecord::Base
   belongs_to :election
+
+  def <=>(other)
+    self.name <=> other.name 
+  end
+  
+  def to_s
+    name
+  end
+
 end

Benjamin Mako Hill || Want to submit a patch?