]> projects.mako.cc - selectricity-live/blobdiff - app/models/quick_vote.rb
added page for hc-anywhere
[selectricity-live] / app / models / quick_vote.rb
index fba31a8e9678f9e5953c3226486b70d9a949ebfa..ab97e616b9131e85f4056bf43cab22f3d935a45c 100644 (file)
@@ -16,18 +16,14 @@ class QuickVote < Election
   
   def initialize(params={})
     super
   
   def initialize(params={})
     super
-    self.enddate =  DateTime.now + 30
+    self.enddate =  Time.now + 30.days
     self.active = 1
     self.anonymous = 1
     self.quickvote = 1
   end
 
     self.active = 1
     self.anonymous = 1
     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
   end
 
   def name

Benjamin Mako Hill || Want to submit a patch?