fix deprecation warning on relation.all in Rails4