projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major update of Selectricity to work with Rails 2.2.2 from 1.2!
[selectricity]
/
app
/
controllers
/
voter_controller.rb
diff --git
a/app/controllers/voter_controller.rb
b/app/controllers/voter_controller.rb
index 9e88e9e282b048cfe1b0e9177081fc1300424873..45b9a1a85f950cec5d54320942917be65071352c 100644
(file)
--- a/
app/controllers/voter_controller.rb
+++ b/
app/controllers/voter_controller.rb
@@
-17,6
+17,7
@@
# <http://www.gnu.org/licenses/>.
class VoterController < ApplicationController
# <http://www.gnu.org/licenses/>.
class VoterController < ApplicationController
+ helper :sparklines
layout 'main'
require_dependency "voter"
require_dependency "vote"
layout 'main'
require_dependency "voter"
require_dependency "vote"
@@
-106,8
+107,8
@@
class VoterController < ApplicationController
def details
if authenticate
@election = @voter.election
def details
if authenticate
@election = @voter.election
- @votes = @election.votes.select {|v| v.confirmed? }.
randomiz
e
- @voters = @votes.collect {|v| v.voter}.
randomiz
e
+ @votes = @election.votes.select {|v| v.confirmed? }.
shuffl
e
+ @voters = @votes.collect {|v| v.voter}.
shuffl
e
render :action => 'details'
else
redirect_to :action => 'index'
render :action => 'details'
else
redirect_to :action => 'index'
Benjamin Mako Hill
||
Want to submit a patch?