Class: Decidim::Budgets::SendOrderSummaryJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
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 '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