Class: Gemgento::Magento::Email::Sales::InvoicesController

Inherits:
BaseController show all
Defined in:
app/controllers/gemgento/magento/email/sales/invoices_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#validate_ip

Instance Method Details

#createObject



7
8
9
10
11
12
13
14
15
# File 'app/controllers/gemgento/magento/email/sales/invoices_controller.rb', line 7

def create
  Gemgento::SalesMailer.invoice_email(
      params[:data][:recipients],
      params[:data][:sender],
      params[:data][:order],
      params[:data][:invoice]
  ).deliver
  render nothing: true
end