Class: ConvenientService::Service::Plugins::CanHaveSequentialSteps::Middleware

Inherits:
MethodChainMiddleware
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_sequential_steps/middleware.rb

Instance Method Summary collapse

Instance Method Details

#nextConvenientService::Service::Plugins::CanHaveSteps::Entities::Step



13
14
15
16
17
# File 'lib/convenient_service/service/plugins/can_have_sequential_steps/middleware.rb', line 13

def next(...)
  return chain.next(...) if entity.steps.none?

  last_completed_step.result
end