title: What is the equivalent of the has_many 'conditions' option in Rails 4?
body: <p>Can someone tell me what is the equivalent way to do the following line in Rails 4?</p>
  
  <pre><code>has_many :friends, :through =&gt; :friendships, :conditions =&gt; "status = 'accepted'", :order =&gt; :first_name
  </code></pre>
  
  <p>I tried the following:</p>
  
  <pre><code>has_many :friends, -&gt; { where status: 'accepted' }, :through =&gt; :friendships , :order =&gt; :first_name
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>Invalid mix of scope block and deprecated finder options on ActiveRecord association: User.has_many :friends
  </code></pre>