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)
def create_candidates
@raw_candidates.each do |name|
candidate = Candidate.new({:name => name})
- candidate.save
self.candidates << candidate
end
end