projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow custimizable graph sizes, to fit with newly modular results page. Also,
[selectricity]
/
app
/
models
/
quick_vote.rb
diff --git
a/app/models/quick_vote.rb
b/app/models/quick_vote.rb
index c04b0d7a3fe3a3539012ba45c50f4cc5632f2687..494f7ac364bfb6b7dd53226bce0f138f05c10c60 100644
(file)
--- a/
app/models/quick_vote.rb
+++ b/
app/models/quick_vote.rb
@@
-47,6
+47,11
@@
class QuickVote < Election
if name =~ /^(create|index|confirm|change|results)$/
errors.add(:name, " is a reserved word.")
end
+
+ if enddate < startdate
+ errors.add(nil, "QuickVotes can't end before they start!")
+ end
+
end
def candidatelist=(candlist)
Benjamin Mako Hill
||
Want to submit a patch?