avoinministerio/avoinministerio — pull request #205 by jyrkive (2012-07-31 10:49:16+00:00)
Title: Fix vote counts in development environment

Currently the vote count of each idea is zero in development environment. The reason is that the database seed creates Vote objects directly, which doesn't update vote counts of corresponding ideas.

This commit fixes that issue. In addition, it turned out that the Idea#vote method requires that ApplicationHelper is included, so now Idea includes ApplicationHelper. That prevents a crash when you run "rake db:seed".