]> projects.mako.cc - selectricity-live/blobdiff - app/models/ranking.rb
Fix broken Plurality vote by removing a type check in RubyVote. TODO: Figure out...
[selectricity-live] / app / models / ranking.rb
index ba021a92c5489369e75b92094ffe549ccf5c1730..5ef0575adc1a9525a41dc6468c3406aad1132974 100644 (file)
@@ -1,6 +1,7 @@
 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?