Class: ParallelDispatcher

Inherits:
Dispatcher show all
Defined in:
lib/parallel_dispatcher.rb

Instance Method Summary collapse

Methods inherited from Dispatcher

deliver_new_cart_emails, #email_approver, #email_observers, #email_sent_confirmation, initialize_dispatcher, #on_approval_status_change, on_approval_status_change, #requires_approval_notice?

Instance Method Details

#deliver_new_cart_emails(cart) ⇒ Object


8
9
10
11
# File 'lib/parallel_dispatcher.rb', line 8

def deliver_new_cart_emails(cart)
  self.email_all_approvers(cart)
  super
end

#email_all_approvers(cart) ⇒ Object


2
3
4
5
6
# File 'lib/parallel_dispatcher.rb', line 2

def email_all_approvers(cart)
  cart.approver_approvals.each do |approval|
    self.email_approver(approval)
  end
end