From: John Dong Date: Wed, 29 Aug 2007 15:29:29 +0000 (-0400) Subject: Fix a bug where quickvote displays name cant be blank twice. validators are inherited... X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/008cc97a2f0d84b4de46f2125133afe6c7f620c7 Fix a bug where quickvote displays name cant be blank twice. validators are inherited from Election for presence_of already --- diff --git a/app/models/quick_vote.rb b/app/models/quick_vote.rb index bd39051..e0bab76 100644 --- 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