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
https://github.com/bbatsov/ruby-style-guide - apparently, we prefer using do ... end for multiline blocks.