Update code related to Relation#all which has been removed from rails 4....

Update code related to Relation#all which has been removed from rails 4.1
`end` at 192, 36 is not aligned with `params[:assignment].groupings.includes([to_include])` at 186, 16 or `.select do |g| !g.has_submission? ||` at 187, 35