Added the ability to do ajax adding of candidates so there is no longer
[selectricity] / app / models / quick_vote.rb
index 1df25afb74d1273bcbc2d4d64c58e718187f2ddf..3538a3cc5d9047f2a4a7fccc8cc925bca6c2e2f2 100644 (file)
@@ -22,12 +22,8 @@ class QuickVote < Election
     self.quickvote = 1
   end
 
-  def candidatelist=(candstring='')
-    @raw_candidates = candstring.split(';').collect {|cand| cand.strip }
-  end
-
-  def candidatelist
-    @raw_candidates.join("; ")
+  def candidatelist=(candlist)
+    @raw_candidates = candlist
   end
 
   def name

Benjamin Mako Hill || Want to submit a patch?