use group_by instead of each_with_object

just simplifies this loop a little bit
Merge pull request #599 from tenderlove/simple_refresh

use group_by instead of each_with_object