X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/500f98b7b7c16d3b75ee85ef1cd7bc9180f3a533..1ef3925927fb35483da98af08f9fc175d5502708:/app/models/vote.rb diff --git a/app/models/vote.rb b/app/models/vote.rb index dcadcac..8852fa5 100644 --- a/app/models/vote.rb +++ b/app/models/vote.rb @@ -95,7 +95,7 @@ class Vote < ActiveRecord::Base # the following subroutine is used for quickvotes, but need for elections now # too. It creates a vote with the candidates listed in order of preference - # based on alphabetical order. It is meant to be manipulated and then confirmed + # based on alphabetical order. Meant to be manipulated and then confirmed def set_defaults! self.votes = voter.election.candidates.sort.collect {|c| c.id } self.save