Class: Gemgento::Magento::Email::Sales::CreditMemosController

Inherits:
BaseController show all
Defined in:
app/controllers/gemgento/magento/email/sales/credit_memos_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/credit_memos_controller.rb', line 7

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