vonkanehoffen/Draww — pull request #5 by Robsteranium (2012-02-20 14:36:30+00:00)
Title: Hotness

Ok. Hotness implemented. You've now got:
* `vote.heat` which is basically casting power (i.e points)/ days since voted
* `post.hotness` which is total vote heat

This means that a vote made yesterday will be worth half that of one made today (and a week ago a 7th). This will work but we might want to make the curve a bit flatter.

More importantly the value isn't cached - i.e. when you view the index page then it triggers calculation of hotness for each post (and then heat for each vote). I'll look into this now.

Also, this commit seems to have picked up a change to schema.rb from somewhere. I'm not sure if this is a revert or what. If you're happy for me to do so I'll clear out all the unused ranking/ voting bits in the next commit?