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
Line is too long. [110/80]<br>Prefer `map` over `collect`.<br>Space inside } missing.