]> projects.mako.cc - selectricity/blob - app/models/candidate.rb
a0e492e8c1f98a6848efc5215db07de5b62f4c7a
[selectricity] / app / models / candidate.rb
1 class Candidate < ActiveRecord::Base
2   belongs_to :election
3
4   def <=>(other)
5    self.name <=> other.name 
6   end
7
8 end

Benjamin Mako Hill || Want to submit a patch?