Class: Decidim::Budgets::SendOrderSummaryJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
decidim-budgets/app/jobs/decidim/budgets/send_order_summary_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(order) ⇒ Object


8
9
10
11
12
# File 'decidim-budgets/app/jobs/decidim/budgets/send_order_summary_job.rb', line 8

def perform(order)
  return if order&.user&.email.blank?

  OrderSummaryMailer.order_summary(order).deliver_now
end