title: Ruby on Rails 5.0.2 - Multiple Nested Json Render
body: <p>I'm having some trouble trying to render multiple nested objects in json.</p>
  
  <p>Here's my script</p>
  
  <pre><code>def getFullSale
          sale = Sale.find(params[:id])
          render json: sale, include: [:discount_sale, :offer_sale, :mixed_payment, :product_sale =&gt; {:include =&gt; {:product_history =&gt; {include: :product}}}, :refunds =&gt; {include: :refund_products}]
  end
  </code></pre>
  
  <p>This works until :product_sale, however anything after is ignored.</p>
  
  <p>What I need is to include both :product_sale and :refund with nested properties.</p>
  
  <p>Thanks!</p>