]> projects.mako.cc - selectricity-live/blob - app/models/ranking.rb
Added initial support fo QuickVotes. There is support for the creation
[selectricity-live] / app / models / ranking.rb
1 class Ranking < ActiveRecord::Base
2   belongs_to :candidate
3   belongs_to :vote
4
5   def <=>(other)
6     self.rank <=> other.rank
7   end
8
9   def to_s
10     self.rank.to_s
11   end
12
13 end

Benjamin Mako Hill || Want to submit a patch?