relation.all is deprecated in rails 4