Class: Comee::Core::SupplierMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/comee/core/supplier_mailer.rb

Instance Method Summary collapse

Instance Method Details

#new_order_notificationObject



6
7
8
9
10
11
12
13
14
15
# File 'app/mailers/comee/core/supplier_mailer.rb', line 6

def new_order_notification
  @back_order = params[:back_order]
  I18n.with_locale(@back_order.supplier.locale) do
    mail(
      from: "[email protected]",
      to: @back_order.supplier.user.email,
      subject: "New Order Notification"
    )
  end
end