]> projects.mako.cc - selectricity/blobdiff - app/models/ranking.rb
fixed up a series of things in prepration for the stress test on friday
[selectricity] / app / models / ranking.rb
index ba021a92c5489369e75b92094ffe549ccf5c1730..9a4719303fcce4672c1d3c5021d5eb16ae1bdd25 100644 (file)
@@ -1,6 +1,14 @@
+# Selectricity: Voting Machinery for the Masses
+# Copyright (C) 2007, 2008 Benjamin Mako Hill <mako@atdot.cc>
+# Copyright (C) 2007 Massachusetts Institute of Technology
+#
+# This program is free software. Please see the COPYING file for
+# details.
+
 class Ranking < ActiveRecord::Base
   belongs_to :candidate
   belongs_to :vote
+  acts_as_list :scope => :vote, :column => :rank
 
   def <=>(other)
     self.rank <=> other.rank

Benjamin Mako Hill || Want to submit a patch?