]> projects.mako.cc - selectricity-live/blobdiff - app/models/quick_vote.rb
Fix a bug where quickvote displays name cant be blank twice. validators are inherited...
[selectricity-live] / 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
   before_validation :build_candidate_names
   after_validation :create_candidates
   validates_uniqueness_of :name
-  validates_presence_of :name
 
   attr_accessor :candidate_names
   attr_accessor :reviewed
 
   attr_accessor :candidate_names
   attr_accessor :reviewed

Benjamin Mako Hill || Want to submit a patch?