projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Variety of small changes (mostly to properties) plus a few "in the
[selectricity]
/
app
/
models
/
ranking.rb
diff --git
a/app/models/ranking.rb
b/app/models/ranking.rb
old mode 100644
(file)
new mode 100755
(executable)
index
ba021a9
..
5ef0575
--- a/
app/models/ranking.rb
+++ b/
app/models/ranking.rb
@@
-1,6
+1,7
@@
class Ranking < ActiveRecord::Base
belongs_to :candidate
belongs_to :vote
+ acts_as_list :scope => :vote, :column => :rank
def <=>(other)
self.rank <=> other.rank
Benjamin Mako Hill
||
Want to submit a patch?