projects
/
selectricity
/ 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]
/
app
/
models
/
quick_vote.rb
diff --git
a/app/models/quick_vote.rb
b/app/models/quick_vote.rb
index d6ab55b124dd2daa328b7452c80880975b553a31..fba31a8e9678f9e5953c3226486b70d9a949ebfa 100644
(file)
--- a/
app/models/quick_vote.rb
+++ b/
app/models/quick_vote.rb
@@
-19,6
+19,7
@@
class QuickVote < Election
self.enddate = DateTime.now + 30
self.active = 1
self.anonymous = 1
self.enddate = DateTime.now + 30
self.active = 1
self.anonymous = 1
+ self.quickvote = 1
end
def candidatelist=(candstring='')
end
def candidatelist=(candstring='')
@@
-34,11
+35,7
@@
class QuickVote < Election
end
def reviewed?
end
def reviewed?
- if reviewed.to_i == 1
- return true
- else
- false
- end
+ reviewed.to_i == 1
end
def create_candidates
end
def create_candidates
Benjamin Mako Hill
||
Want to submit a patch?