X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/905cf65f6b3e8acc894c268c3bf729e7b0c76292..1633d6c9b98f425d1ad33c1dd61a63b7365ff54c:/app/models/quick_vote.rb?ds=sidebyside diff --git a/app/models/quick_vote.rb b/app/models/quick_vote.rb index bd39051..de78813 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 @@ -12,8 +11,6 @@ class QuickVote < Election self.startdate = Time.now self.active = 1 self.anonymous = 1 unless self.anonymous - self.enddate = read_attribute( :enddate ) || \ - Time.now + 30.days - 1.second end def validate