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

Benjamin Mako Hill || Want to submit a patch?