]> projects.mako.cc - selectricity/blobdiff - app/models/candidate.rb
Working on a step-by-step workflow audit.
[selectricity] / app / models / candidate.rb
index 41d743b3a55ed07c0184605cbba600ba2ebc5c84..e17ba29b5f1ff866e3dd3c0d9c26beaa5b105aa5 100644 (file)
@@ -1,2 +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?