projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major changes in this commit over include work over several days but that was never...
[selectricity-live]
/
app
/
controllers
/
elections_controller.rb
diff --git
a/app/controllers/elections_controller.rb
b/app/controllers/elections_controller.rb
index b3406a84ab64941ce8a4c05e415937aec09f4e92..339c77bc8991fe80ef38ab6afddd53e5ca53974d 100644
(file)
--- a/
app/controllers/elections_controller.rb
+++ b/
app/controllers/elections_controller.rb
@@
-1,5
+1,3
@@
-require 'uniq_token'
-
class ElectionsController < ApplicationController
model :raw_voter_list, :voter, :vote, :candidate
class ElectionsController < ApplicationController
model :raw_voter_list, :voter, :vote, :candidate
@@
-102,21
+100,29
@@
class ElectionsController < ApplicationController
voter.destroy
end
voter.destroy
end
+ def summary_results
+ end
+
+ def detailed_results
+ @election = Election.find( params[:id] )
+ @voting_rolls = []
+ @election.voters.each do |voter|
+ if voter.vote and voter.vote.confirmed?
+ @voting_rolls << voter
+ end
+ end
+ end
+
private
private
+ def randomize_order
+ end
def process_incoming_voters(raw_voter_list)
incoming_voters = RawVoterList.new( raw_voter_list )
def process_incoming_voters(raw_voter_list)
incoming_voters = RawVoterList.new( raw_voter_list )
- token_generator = UniqueTokenGenerator.new( 16 )
unless incoming_voters.entries.empty?
incoming_voters.each do |new_voter|
unless incoming_voters.entries.empty?
incoming_voters.each do |new_voter|
- until new_voter.password and \
- Voter.find_all( [ "password = ?", new_voter.password ]).empty?
- new_voter.password = token_generator.token
- end
-
- breakpoint
if incoming_voters.email == 0
new_voter.contacted = 1
elsif incoming_voters.email == 1
if incoming_voters.email == 0
new_voter.contacted = 1
elsif incoming_voters.email == 1
Benjamin Mako Hill
||
Want to submit a patch?