Allow custimizable graph sizes, to fit with newly modular results page. Also,
[selectricity-live] / app / models / quick_vote.rb
index c04b0d7a3fe3a3539012ba45c50f4cc5632f2687..494f7ac364bfb6b7dd53226bce0f138f05c10c60 100644 (file)
@@ -47,6 +47,11 @@ class QuickVote < Election
     if name =~ /^(create|index|confirm|change|results)$/
       errors.add(:name, " is a reserved word.")
     end
+    
+    if enddate < startdate
+      errors.add(nil, "QuickVotes can't end before they start!")
+    end
+    
   end
 
   def candidatelist=(candlist)

Benjamin Mako Hill || Want to submit a patch?