]> projects.mako.cc - selectricity/blobdiff - app/models/quick_vote.rb
Merge my local branch, bring back xmlrpc
[selectricity] / app / models / quick_vote.rb
old mode 100755 (executable)
new mode 100644 (file)
index ab97e61..eb4e63c
@@ -16,10 +16,10 @@ class QuickVote < Election
   
   def initialize(params={})
     super
+    self.startdate = Time.now
     self.enddate =  Time.now + 30.days
     self.active = 1
     self.anonymous = 1
-    self.quickvote = 1
   end
 
   def candidatelist=(candlist)
@@ -37,7 +37,6 @@ class QuickVote < Election
   def create_candidates
     @raw_candidates.each do |name|
       candidate = Candidate.new({:name => name})
-      candidate.save
       self.candidates << candidate
     end
   end

Benjamin Mako Hill || Want to submit a patch?