Class: Commands::Approval::UpdateFromApprovalResponse

Inherits:
Base
  • Object
show all
Defined in:
app/commands/approval/update_from_approval_response.rb

Instance Method Summary collapse

Instance Method Details

#perform(approval, new_status) ⇒ Object


4
5
6
7
8
9
# File 'app/commands/approval/update_from_approval_response.rb', line 4

def perform(approval, new_status)
  approval.update_attributes(status: new_status)
  approval.cart.update_approval_status

  Dispatcher.on_approval_status_change(approval)
end