Variety of small changes (mostly to properties) plus a few "in the
[selectricity-live] / app / models / candidate.rb
old mode 100644 (file)
new mode 100755 (executable)
index 7b6e802..430b6ab
@@ -1,8 +1,9 @@
 class Candidate < ActiveRecord::Base
   belongs_to :election
-  validates_uniqueness_of :name
   validates_presence_of :name
 
+  # validate uniqueness of a name *within a given election*
+
   def <=>(other)
     self.name <=> other.name 
   end

Benjamin Mako Hill || Want to submit a patch?