X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/1260415e640fec24f8c970ae8e61f4a7ab4594d4..1e7167aa6d0c20b8e7b54969577c53abe50461c5:/app/models/ranking.rb?ds=sidebyside diff --git a/app/models/ranking.rb b/app/models/ranking.rb index ba021a9..9a47193 100644 --- a/app/models/ranking.rb +++ b/app/models/ranking.rb @@ -1,6 +1,14 @@ +# Selectricity: Voting Machinery for the Masses +# Copyright (C) 2007, 2008 Benjamin Mako Hill +# Copyright (C) 2007 Massachusetts Institute of Technology +# +# This program is free software. Please see the COPYING file for +# details. + class Ranking < ActiveRecord::Base belongs_to :candidate belongs_to :vote + acts_as_list :scope => :vote, :column => :rank def <=>(other) self.rank <=> other.rank