projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a bug where quickvote displays name cant be blank twice. validators are inherited...
[selectricity-live]
/
app
/
models
/
quick_vote.rb
diff --git
a/app/models/quick_vote.rb
b/app/models/quick_vote.rb
index bd390519331e5e2d62c82d69223e9f5397daf664..e0bab76fccf4a8654dffabb461eb105aadd6a1fd 100644
(file)
--- a/
app/models/quick_vote.rb
+++ b/
app/models/quick_vote.rb
@@
-2,7
+2,6
@@
class QuickVote < Election
before_validation :build_candidate_names
after_validation :create_candidates
validates_uniqueness_of :name
- validates_presence_of :name
attr_accessor :candidate_names
attr_accessor :reviewed
Benjamin Mako Hill
||
Want to submit a patch?