title: Find conditions syntax in Rails 5.2.3
body: <p>I am upgrading an old RoR app to Rails 5.2.3 and would like know the right syntax for below line in 5.2.3:</p>
  
  <pre><code>    default :to =&gt; User.find(:all, :conditions =&gt; ["admin=?", true]).map(&amp;:email_addr), :from =&gt; "foo@grbx.com"
  </code></pre>
  
  <p>Error I am getting is:</p>
  
  <pre><code>    Error: The application encountered the following error: Couldn't find all Users with 'id': (all, {:conditions=&gt;["admin=?", true]}) (found 0 results, but was looking for 2). (ActiveRecord::RecordNotFound)
  </code></pre>