Rails3.1 compatibility: issue#spent_hours