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
Use 2 (not 3) spaces for indentation.