title: Rails find order id on mailer
body: <p>On a order mailer to find the order id i used order_id, but rails return a error, if i use params the same.</p>
  
  <p>what's the way to get find the object id on a mailer?</p>
  
  <pre><code>def order_confirmation(order)
      order = Order.find(order_id)
      @user = order.buyer_id
      mail(to: @user.email, subject: 'Confirmação da Compra', &amp;:html)
    end
  </code></pre>