]> projects.mako.cc - selectricity/blobdiff - app/models/quick_vote.rb
removed save line that was causing the new elections to fail
[selectricity] / app / models / quick_vote.rb
index ab97e616b9131e85f4056bf43cab22f3d935a45c..98379cbb89ffd1497711c5c3ddb5555bb1b9f9ac 100755 (executable)
@@ -37,7 +37,6 @@ class QuickVote < Election
   def create_candidates
     @raw_candidates.each do |name|
       candidate = Candidate.new({:name => name})
   def create_candidates
     @raw_candidates.each do |name|
       candidate = Candidate.new({:name => name})
-      candidate.save
       self.candidates << candidate
     end
   end
       self.candidates << candidate
     end
   end

Benjamin Mako Hill || Want to submit a patch?