Made the results page 'modular,' and all the necessary adaptations.
[selectricity] / config / environment.rb
index ba927343d1dc89aca7a36e7ee2b63e0eaadb4623..571638d14a3fc1a0ccefbce34442f8cbc1fa8fc0 100644 (file)
@@ -63,8 +63,11 @@ MAIL_CONFIG = { :from => 'Selectricity <info@selectricity.media.mit.edu>'}
 
 require 'uniq_token'
 require 'randarray'
-require 'rubyvote'
 require 'gruff'
+require 'sparklines'
+
+require 'rubyvote'
+ELECTION_TYPES = %w(ssd plurality approval condorcet borda)
 
 class String
   # alternate capitalization method that does not lowercase the rest of

Benjamin Mako Hill || Want to submit a patch?