title: Specifying Conditions on Nested Eager Loaded Associations
body: <p><a href="http://guides.rubyonrails.org/active_record_querying.html" rel="nofollow">ActiveRecord querying</a> has a section on Specifying Conditions on Eager Loaded Associations. Specifically, section 13.2.</p>
  
  <p>According to it I can do the following:</p>
  
  <pre><code>Article.includes(:comments).where(comments: { visible: true })
  </code></pre>
  
  <p>What if I wanted to do something like this...</p>
  
  <pre><code>Article.where(param: "this").includes(user: [:comments]).where(comments: { text: "wow" })
  </code></pre>
  
  <p>Of course, the above doesn't work, I would love to be able to achieve that with some query.</p>
  
  <p>As it stands, after my query I do a <code>articles[3].user.comments.select { |comment| comment.text == "wow" }</code></p>
  
  <p>Anyway to achieve the above?</p>