]> projects.mako.cc - selectricity-live/blobdiff - app/models/quick_vote.rb
ignore vendor/plugins/sitealizer/lib/last_update
[selectricity-live] / app / models / quick_vote.rb
index bd390519331e5e2d62c82d69223e9f5397daf664..de78813153025698796b8ce274f711072cf984e5 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
@@ -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

Benjamin Mako Hill || Want to submit a patch?