projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added support for voting in QuickVotes.
[selectricity-live]
/
app
/
models
/
election.rb
diff --git
a/app/models/election.rb
b/app/models/election.rb
index ba466b4b55928dac2f5291e0513d77b684a8c08d..0860a426ff137d84dc9184ac322725aec05553cf 100644
(file)
--- a/
app/models/election.rb
+++ b/
app/models/election.rb
@@
-39,5
+39,9
@@
class Election < ActiveRecord::Base
def activate!
self.active = 1
end
+
+ def quickvote?
+ quickvote.to_i == 1
+ end
end
Benjamin Mako Hill
||
Want to submit a patch?