avoinministerio/avoinministerio — pull request #213 by jyrkive (2012-08-03 07:41:20+00:00)
Title: Stop updating the updated_at timestamp in Idea#vote

Currently the updated_at timestamps of ideas change way too often. The cause was, as expected, that voting changes the values of vote counters and updates the updated_at timestamp.

This commit changes the Idea#vote method to use a low-level update_column method to change the values of vote counters. Update_column skips validations and callbacks, including Rails's internal callback that updates updated_at.