title: How to resolve 'Remove from your finder: :includes => [:company]'
body: <p>When I try to write nested relation, I got bellow warning and can't get company data.</p>
  
  <blockquote>
    <p>Unused Eager Loading detected
      User => [:company]
      Remove from your finder: :includes => [:company]</p>
  </blockquote>
  
  <p>I write bellow code.
  When I check about sql. it looks like to make relation with user and company.
  But this controller result can't get company data.
  Do you know how to resolve this issue? </p>
  
  <p><strong>controller/product.rb</strong></p>
  
  <pre><code>def products
    Product
      .sale_date_between(params[:from], params[:to])
      .organization(current_user.company_id)
      .order('sale_date DESC')
  end
  </code></pre>
  
  <p><strong>models/product.rb</strong></p>
  
  <pre><code>belongs_to :user
  scope :with_user, -&gt; { includes(:user, {user: :company}) }
  scope :sale_date_between, -&gt;(from, to) { where('sale_date_date &gt;= ?', from).where('sale_date_date &lt;= ?', to) }
  scope :company, -&gt;(id) { with_user.where(users: { company_id: id }) }
  </code></pre>
  
  <p><strong>models/user.rb</strong></p>
  
  <pre><code>has_many :products
  </code></pre>
  
  <p><strong>models/company.rb</strong></p>
  
  <pre><code>belongs_to :user, foreign_key: 'company_id'
  </code></pre>