title: Round-robin assignment in Ruby
body: <p>I have <code>Enquiry</code> and <code>Consellor</code> models. I want to assign Enquiries to Counsellors in a round robin manner. If there are 3 consellors and 5 Enquiries, then the assignment should be:</p>
  
  <blockquote>
    <p>Enquiry 1 => C1, Enquiry 2 => C2, Enquiry 3 => C3, Enquiry 4 => C1,
    Enquiry 5 => C2</p>
  </blockquote>
  
  <p>I can do this by querying DB and optimize by caching, but looking for a better solution.</p>