title: Rails "find_all_by" vs ".where"
body: <p>I have the following code:</p>
  
  <pre><code>def maturities
    InfoItem.find_all_by_work_order(self.work_order).map(&amp;:maturity)
  end
  </code></pre>
  
  <p>I was thinking about changing it to:</p>
  
  <pre><code>def maturities
    InfoItem.where(work_order: self.work_order).map(&amp;:maturity)
  end
  </code></pre>
  
  <p>Would there be any advantage to this? It seems like <code>.where</code> is more common than <code>find_all_by</code> nowadays.</p>