Class: Spree::Exchanges::Approve

Inherits:
Workflow
  • Object
show all
Includes:
PostSale::Approval
Defined in:
app/workflows/spree/exchanges/approve.rb

Instance Method Summary collapse

Methods inherited from Workflow

#call, define_argument_readers, #errors, #halt!, hooks, inherited, model_name, #read_attribute_for_validation, #reject!, workflow_key

Methods included from ServiceModule::Base

#call, prepended

Methods included from Workflow::ControlFlow

#failure

Instance Method Details

#perform(exchange:, approver: nil) ⇒ Object

Parameters:



10
11
12
13
# File 'app/workflows/spree/exchanges/approve.rb', line 10

def perform(exchange:, approver: nil)
  super
  approve
end