]> projects.mako.cc - selectricity-live/commitdiff
Fix a bug where quickvote displays name cant be blank twice. validators are inherited...
authorJohn Dong <jdong@mit.edu>
Wed, 29 Aug 2007 15:29:29 +0000 (11:29 -0400)
committerJohn Dong <jdong@mit.edu>
Wed, 29 Aug 2007 15:29:29 +0000 (11:29 -0400)
app/models/quick_vote.rb

index bd390519331e5e2d62c82d69223e9f5397daf664..e0bab76fccf4a8654dffabb461eb105aadd6a1fd 100644 (file)
@@ -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?