From 008cc97a2f0d84b4de46f2125133afe6c7f620c7 Mon Sep 17 00:00:00 2001 From: John Dong Date: Wed, 29 Aug 2007 11:29:29 -0400 Subject: [PATCH] Fix a bug where quickvote displays name cant be blank twice. validators are inherited from Election for presence_of already --- app/models/quick_vote.rb | 1 - 1 file changed, 1 deletion(-) 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 -- 2.30.2