rails retry method with partial search results issue