]> projects.mako.cc - selectricity-live/commitdiff
removed save line that was causing the new elections to fail
author<mako@atdot.cc> <>
Sat, 4 Aug 2007 06:47:27 +0000 (02:47 -0400)
committer<mako@atdot.cc> <>
Sat, 4 Aug 2007 06:47:27 +0000 (02:47 -0400)
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?