Sha256: ac88d06f6e494afe4994a1253d5480f5e069b56d979731baca1719d99085807a
Contents?: true
Size: 715 Bytes
Versions: 236
Compression:
Stored size: 715 Bytes
Contents
module Comee module Core class BackOrderNotification < Noticed::Base deliver_by :database deliver_by :email, mailer: "Comee::Core::SupplierMailer", method: :new_order_notification param :back_order def message back_order = params[:back_order] title = "New Order Notification" date = Date.current content = <<~CONTENT A new purchase order with the following details has been sent to you: order number: #{back_order.order_number} order date: #{back_order.order_date} delivery date: #{back_order.delivery_date} CONTENT {title: title, date: date, content: content} end end end end
Version data entries
236 entries across 236 versions & 1 rubygems