]> projects.mako.cc - selectricity/blobdiff - app/models/candidate.rb
changed properties and the name of hyperchad to selectricity
[selectricity] / 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?