johnleee/Hibiscus — pull request #16 by lakeskysea (2012-11-11 10:33:45+00:00)
Title: Upvote / Downvote on reviews

Upvote / Downvote is implemented on reviews. (not yet on comments, but can be done quickly if desired)

Voteable and voter are kept as separate modules in favor of easy extension on other models.

Code adapted from thumb_up gem (https://github.com/bouchard/thumbs_up)

The ajax call of voting now has a slow performance (can take ~3s to respond after you click upvote). My observation is that it taks ~2s for server to update and save new vote_score, before it can respond to ajax call.

Why it taks so long to save this field is still under investigation.