X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/fc0a6a8d7ea15bcdb27ebdd58721401c7045c6e0..09c67d9323c7d379d4c6de5dc0457b6de16cff14:/app/models/quick_vote.rb diff --git a/app/models/quick_vote.rb b/app/models/quick_vote.rb old mode 100755 new mode 100644 index ab97e61..eb4e63c --- a/app/models/quick_vote.rb +++ b/app/models/quick_vote.rb @@ -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