avoinministerio/avoinministerio — pull request #208 by jyrkive (2012-08-01 05:28:01+00:00)
Title: Stop using KISSmetrics in the Idea model

Currently KISSmetrics receives information about voting when Idea#vote is called. Idea#vote is a wrong place for KISSmetrics code because, in general, model methods shouldn't send HTTP requests. In addition, currently Idea needs to include ApplicationHelper because the KM class is defined in ApplicationHelper. Finally, sending these HTTP requests greatly slows down "rake db:seed".

This commit moves KISSmetrics code to VoteController.