X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/75091532075247ae9c47164ea883f4fe803eddf4..404bd293fe621a270748df828c67e507b350920b:/app/models/quick_vote.rb diff --git a/app/models/quick_vote.rb b/app/models/quick_vote.rb index fba31a8..3538a3c 100644 --- a/app/models/quick_vote.rb +++ b/app/models/quick_vote.rb @@ -16,18 +16,14 @@ class QuickVote < Election def initialize(params={}) super - self.enddate = DateTime.now + 30 + self.enddate = Time.now + 30 self.active = 1 self.anonymous = 1 self.quickvote = 1 end - def candidatelist=(candstring='') - @raw_candidates = candstring.split(';').collect {|cand| cand.strip } - end - - def candidatelist - @raw_candidates.join("; ") + def candidatelist=(candlist) + @raw_candidates = candlist end def name