X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/404bd293fe621a270748df828c67e507b350920b..c405443c19a18c645aacc16848502f5b91461feb:/app/models/quick_vote.rb diff --git a/app/models/quick_vote.rb b/app/models/quick_vote.rb index 3538a3c..eb4e63c 100644 --- a/app/models/quick_vote.rb +++ b/app/models/quick_vote.rb @@ -16,10 +16,10 @@ class QuickVote < Election def initialize(params={}) super - self.enddate = Time.now + 30 + 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