relation.all is deprecated in rails 4
Merge pull request #1 from Bonias/fix-deprecated-code

relation.all is deprecated in rails 4