Rails cache helper method