Rails4: replace deprecated Relation#sum with finder options at Issue#total_spent_hours

git-svn-id: http://svn.redmine.org/redmine/trunk@12588 e93f8b46-1217-0410-a6f0-8f06a7374b81