X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/776bdf980f85cf230b238a80e1019fc78d53f06e..c3cd161cbcf0f2e496fdc7888a156907188b8932:/app/models/vote.rb?ds=inline 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